Endpoint referenceMarkets
GET /v1/trades
Recent trades, newest first. Realized rows (position_closed / position_liquidated) carry size, asset, direction, and entry price joined from the matching position_opened event (null when the open predates the indexer history). Cross-margin account liquidations appear as kind:cross_liquidation with null position fields (the chain emits one account-level event; pnl is the account total) — omitted when filtering by asset. Auto-deleveraging fills appear as kind:adl (settled at the oracle mark, with per-position pnl). Pass include_opens=true to also receive position_opened rows as kind:open.
Query Parameters
trader?string
Length
56 <= length <= 56asset?string
Length
1 <= length <= 12before_ts?integer
Range
0 <= valuelimit?integer
Range
1 <= value <= 200include_opens?boolean
Response Body
application/json
curl -X GET "https://example.com/v1/trades"{ "trades": [ { "positionId": null, "trader": "string", "kind": "open", "asset": null, "direction": null, "size": null, "entryPrice": null, "closePrice": null, "pnl": null, "ledger": 0, "ts": 0, "txHash": "string" } ]}