API Reference

Order History

Query detailed information on completed orders in the current account.

⏳ Limit

15 requests per 10 seconds.


🛠️ Parameters

FieldTypeMandatoryDescription
symbolStringNThe trading pair or asset symbol.
marketStringNMarket type: SPOT, PERP.
beginStringNThe start time for data queries, specified in milliseconds timestamp format.
endStringNThe end time for data queries, specified in milliseconds timestamp format.

📬 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.
executedAvgPriceStringThe average price at which the order has been executed.
executedAmountStringThe total amount executed, i.e., the quantity of the quote currency that has been traded.
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