Returns historical fills for one wallet, optionally filtered to a single market or time window. Same enriched row shape asDocumentation Index
Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt
Use this file to discover all available pages before exploring further.
/v1/markets/:id/trades, scoped to user_addr.
Endpoint
Query parameters
| Param | Type | Default | Description |
|---|---|---|---|
outcome_id | int | — | Filter to a single market |
from | int | — | Lower bound time_us (microseconds since epoch) |
to | int | — | Upper bound time_us |
limit | int | 100 | Max rows (cap 1000) |
Response (single trade row)
Response wrapper
| Field | Description |
|---|---|
tid | HL trade ID — unique per fill |
oid | HL order ID — multiple fills can share an oid for partial-fill orders |
direction | HL’s per-fill action label (Buy, Sell, Open Long, Close Short, etc.) |
closed_pnl | HL’s per-fill realized PnL — only set when this fill closes a position |
Use cases
- Wallet trade history page — paginated activity feed.
- Tax export — combine with
/positions?status=settledfor full P/L reconstruction. - Backfill in chunks — page through history with
to=<oldest tid time_us>shrinking each request.
Examples
Notes
- Sorted reverse-chronological (newest first).
- A wallet can appear on BOTH sides of the same trade (self-trade). Those fills show with the same
tidbut differentdirection. - HIP-4 fills currently have
tx_hash = 0x000...000— they settle inside HL state, not on Polygon. The field is preserved for forward compatibility.