API Reference

Query Order Detail

Query detailed order information, including current status, trading details, execution information, etc.

This query supports all order states.

⏳ Limit

600 requests per minute.


🛠️ Parameters

FieldTypeMandatoryDescription
orderIdStringNOrder ID
clientOrderIdStringNCustomer-defined order ID

Tip: Either orderId or clientOrderId must be sent. This query supports all order states (NEW, OPEN, CANCELLED, FILLED, PARTIALLY_FILLED, REJECT, FAIL).


📬 Response

FieldTypeDescription
accountIdStringAccount ID
orderIdStringOrder ID
clientOrderIdStringCustomer-defined order ID
orderStateStringOrder state(NEW, OPEN, CANCELLED, FILLED, PARTIALLY_FILLED, REJECT, FAIL)
symbolStringThe trading pair or asset symbol.
sideStringOrder side (BUY or SELL).
orderTypeStringOrder type (default LIMIT, supported types: LIMIT, MARKET).
marketStringMarket type: SPOT, PERP.
orderQtyStringThe quantity of the base currency (Mandatory unless spot market buy).
quoteOrderQtyStringOrder quote quantity, only used for spot market buy orders to specify the total amount in the quote currency to spend.
limitPriceStringLimit price (mandatory for limit orders).
timeInForceStringTime In Force (default GTC, supported types: GTC, IOC, FOK, GTX). GTX = GTC + Post only.
executedQtyStringThe quantity of the base currency that has been executed.
executedAmountStringThe total amount executed, i.e., the quantity of the quote currency that has been traded.
executedAvgPriceStringThe average price at which the order has been executed.
reasonStringIf the order failed, provides information about the failure reason.
createTimeStringThe timestamp when this portfolio record was created (in milliseconds).
updateTimeStringThe timestamp when this portfolio record was last updated (in milliseconds).
feeStringThe trading fee incurred for the executed trades.
orderAttributeStringDMA,SYSTEM_LIQ,SYSTEM_REDUCE,REPLACE
reduceOnlyStringReduce-only order, must be true or false. Indicates whether the order should only reduce an existing position.
leverageStringLeverage
lastExecutedQtyStringThe quantity executed in the most recent fill.
lastExecutedPriceStringThe price at which the most recent execution occurred.
lastExecutedAmountStringThe amount of the quote currency involved in the most recent execution.
borrowAmountStringBorrow Amount
borrowAssetStringBorrow Asset
Language