private/get-order-detail
POSTGets detail of a single order by order_id or client_oid./private/get-order-detail
Request
Body
required
Request id (echoed in response)
Must be "private/get-order-detail"
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
Order ID. string format is highly recommended, especially for JavaScript client. If not provided, client_oid must be specified.
Client Order ID. If not provided, order_id must be specified.
Schema
- ➖ LIMIT, MARKET
- ➖ STOP_LOSS, STOP_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT: Trigger orders
- ➖ OCO: One-Cancels-the-Other
- ➖ OTO: One-Triggers-the-Other
- ➖ OTOCO: One-Triggers-a-One-Cancels-the-Other
- ➖ SPOT_ATTACH: SpotAttach (TP/SL attached to order for spot instruments)
- ➖ DERIV_ATTACH: DerivAttach (TP/SL attached to order or position for derivative instruments)
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
Account ID.
Order ID.
Client Order ID.
Possible values: [LIMIT, MARKET, STOP_LOSS, STOP_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT]
Order type:
Possible values: [GOOD_TILL_CANCEL, IMMEDIATE_OR_CANCEL, FILL_OR_KILL]
Time in force
Possible values: [BUY, SELL]
BUY or SELL
Possible values: [POST_ONLY, REDUCE_ONLY, SMART_POST_ONLY, LIQUIDATION, ISOLATED_MARGIN, MARGIN_ORDER]
Execution instructions.
Quantity specified in the order.
Limit price specified in the order.
Order value.
User's maker fee rate.
User's taker fee rate.
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.
isolation_id of the isolated position the order is tied to (derivatives only).
Possible values: [ISOLATED_MARGIN]
ISOLATED_MARGIN when isolation_id > 0 (derivatives only).
OTO/OTOCO/OCO list id; advanced only.
Possible values: [OCO, OTO, OTOCO, SPOT_ATTACH, DERIV_ATTACH]
Contingency type for advanced orders:
Leg id within OTO/OTOCO/OCO; advanced only.
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).
The order ID this trigger is attached to (for SpotAttach / DerivAttach attach-to-order orders).
Position this trigger is attached to (DerivAttach attach-to-position): > 0 = isolation_id of the isolated position; 0 = cross-margin position.
Order ID assigned by the exchange (present once the leg has been accepted).
Rejection reason, if the leg was rejected.
Leverage specified on the primary leg (derivatives only, when provided).
Isolated margin amount specified on the primary leg (derivatives only, when provided).
Present when code !== 0.
Present when code !== 0.