Skip to main content

Query historical orders

GET: /v1/spot/history-order

Parameters

ParameterTypemandatoryDefaultDescriptionRanges
symbolstringfalseTrading pair, if not filled in, represents all
bizTypeenumfalseSPOT, LEVER
sideenumfalseBUY,SELL
typeenumfalseLIMIT, MARKET
stateenumfalseorder state, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED
fromIdnumberfalsestart id
directionenumfalsequery direction:PREV, NEXT
limitnumberfalse20Limit number,min 1, max 100
startTimenumberfalseeg:1657682804112
endTimenumberfalse
hiddenCanceledboolfalse

Limit Flow Rules

10/s/apikey

Note: The parameters should be placed in the request body in the form of json

Response
{
"code": 200,
"msg": "string",
"msgInfo": [
{}
],
"data": {
"hasPrev": true,
"hasNext": true,
"items": [ //For field information, refer to the Get single interface
{
"symbol": "BTC_USDT",
"orderId": "6216559590087220004",
"clientOrderId": "16559590087220001",
"baseCurrency": "string",
"quoteCurrency": "string",
"side": "BUY",
"type": "LIMIT",
"timeInForce": "GTC",
"price": "40000",
"origQty": "2",
"origQuoteQty": "48000",
"executedQty": "1.2",
"leavingQty": "string",
"tradeBase": "2",
"tradeQuote": "48000",
"avgPrice": "42350",
"fee": "string",
"feeCurrency": "string",
"state": "NEW",
"nftId": "string",
"symbolType": "string",
"deductServices":[
{ //Fee deduction list (if set JU deduction fee and the deduction occurs, use this field to represent the trade fee. Otherwise, use the original fee and feeCurrency fields to represent the trade fee).
"fee":"0.1",
"feeCurrency":"ju"
},
{
"fee":"0.001",
"feeCurrency":"btc"
}
],
"closed": true,
"time": 1655958915583,
"ip": "127.0.0.1",
"updatedTime": 1655958915583
}
]
}
}