private/get-order-history
POSTGets the order history for a particular instrument./private/get-order-history
Users should use user.order to keep track of real-time order updates, and private/get-order-history should primarily be used for recovery; typically when the websocket is disconnected.
Request
Body
required
Request id (echoed in response)
Must be "private/get-order-history"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
Start time (ms or ns).
End time (ms or ns).
Default value: 100
Maximum number of orders to retrieve. Default: 100.
Schema
- Array [
- ➖ LIMIT, MARKET
- ➖ STOP, STOP_LIMIT: Trigger orders
- ]
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
data object[]
Account ID.
Order ID.
Client Order ID.
Possible values: [LIMIT, MARKET, STOP, STOP_LIMIT]
Order type:
Possible values: [IMMEDIATE_OR_CANCEL]
Time in force. Only IMMEDIATE_OR_CANCEL (IOC) is accepted for Combo orders.
Possible values: [BUY, SELL]
BUY or SELL
Possible values: [POST_ONLY, REDUCE_ONLY, SMART_POST_ONLY]
Execution instructions.
Quantity specified in the order.
Limit price specified in the order.
Order value.
Average price.
Cumulative executed quantity.
Cumulative executed value.
Cumulative executed fee.
Possible values: [PENDING, NEW, ACTIVE, FILLED, CANCELED, REJECTED, EXPIRED]
Order status
Updated user.
Order creation date.
E.g. BTCUSD-PERP.
Currency used for the fees.
Order creation timestamp (ms), e.g. "1771761038000".
Order creation timestamp (nanosecond), e.g. "1771761038000000000".
Order update timestamp (ms), e.g. "1771761038000".
Rejection reason code; present for get-order-detail and get-order-history.
Trigger reference price (trigger legs only).
Possible values: [MARK_PRICE, INDEX_PRICE, LAST_PRICE]
Price source used for ref_price: MARK_PRICE, INDEX_PRICE, or LAST_PRICE (trigger legs only).
Transaction timestamp in nanoseconds.
Response message. Contains additional reason when code !== 0.
Present when code !== 0.