HTTP endpoints
Get order history
Non-fill order events for an account over a time range.
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| account | yes | string (hex) | Account address (hex-encoded, 0x...). |
| startTime | yes | integer (int64) | Start timestamp in milliseconds (optional, defaults to 24h ago). |
| endTime | yes | integer (int64) | End timestamp in milliseconds (optional, defaults to now). |
| limit | yes | integer | null |
Response fields
| Parameter | Required | Type | Description |
|---|---|---|---|
orderHistory | yes | object[] | Non-fill order events for the requested account. |
orderHistory[].account | yes | string (hex) | An Ethereum-style account address (20 bytes). |
orderHistory[].eventIndex | yes | integer (int32) | — |
orderHistory[].eventType | yes | string | — |
orderHistory[].feeAmount | yes | string | — |
orderHistory[].feeRate | yes | string | — |
orderHistory[].instrument | yes | string (decimal) | An instrument identifier (8-byte hash). |
orderHistory[].isAdl | yes | boolean | — |
orderHistory[].isLiquidation | yes | boolean | — |
orderHistory[].isPassive | yes | boolean | — |
orderHistory[].orderId | yes | integer (int64) | — |
orderHistory[].pnl | yes | string | — |
orderHistory[].price | yes | string | — |
orderHistory[].round | yes | integer (int64) | — |
orderHistory[].settlementAsset | yes | integer | — |
orderHistory[].size | yes | string | — |
orderHistory[].timestamp | yes | integer (int64) | — |
orderHistory[].txIndex | yes | integer (int32) | — |
Response example
A sample 200 response body is attached to this operation as an OpenAPI example — see the Example panel on this page.
GET
Get order history
Path Parameters
Account address (hex-encoded, 0x...).
Start timestamp in milliseconds (optional, defaults to 24h ago).
Required range:
x >= 0End timestamp in milliseconds (optional, defaults to now).
Required range:
x >= 0Maximum number of order events to return (optional, defaults to 500, max 1000).
Required range:
x >= 0Response
Order history
Non-fill order events for the requested account.
Get order history