Skip to content
NoetherDocs

GET /v1/trades

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
Length56 <= length <= 56
asset?string
Length1 <= length <= 12
before_ts?integer
Range0 <= value
limit?integer
Range1 <= value <= 200
include_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"    }  ]}