API Reference

Query Order Detail

Rate Limit: 1200 requests per 60 seconds

Retrieve order details for all order status.

Request

NameTypeMandatoryDescription
orderIdStringNOrder ID
clientOrderIdStringNCustomer-defined order ID , consists of letters(a-z) and numbers(0-9)

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

Response

FieldTypeRemark
portfolioIdStringPortfolio ID
orderIdStringOrder ID
clientOrderIdStringCustomer-defined order ID
orderStateStringOrder state(NEW, OPEN, CANCELLED, FILLED, PARTIALLY_FILLED, REJECT, FAIL)
symStringTrading pair unique identifier ,example:
BINANCE_SPOT_BTC_USDT, BINANCE_PERP_BTC_USDT
sideStringSide(BUY,SELL)
exchangeOrderTypeStringExchange order type(LIMIT, MARKET)
exchangeTypeStringExchange type(BINANCE,OKX)
businessTypeStringBusiness type(SPOT,PERP)
orderQtyStringOrder quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin
quoteOrderQtyStringOrder quote quantity, only use for Spot Market Buy order
limitPriceStringOrder price
timeInForceStringTimeinforce (default GTC, enums:GTC,IOC,FOK,GTX)
reasonStringFail message
executedQtyStringExecuted quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin
executedAvgPriceStringAverage transaction price
executedAmountStringExecuted quote quantity
reduceOnlyStringReduce position orders only, "true" or "false"
lastExecutedQtyStringLast transaction quantity
lastExecutedPriceStringLast transaction price
lastExecutedAmountStringLast transaction amount
feeStringExecuted transaction fee
createAtStringCreate time
updateAtStringUpdate time
Language