Query historical orders
GET: /v1/spot/history-order
Parameters
Parameter | Type | mandatory | Default | Description | Ranges |
---|---|---|---|---|---|
symbol | string | false | Trading pair, if not filled in, represents all | ||
bizType | enum | false | SPOT, LEVER | ||
side | enum | false | BUY,SELL | ||
type | enum | false | LIMIT, MARKET | ||
state | enum | false | order state, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED | ||
fromId | number | false | start id | ||
direction | enum | false | query direction:PREV, NEXT | ||
limit | number | false | 20 | Limit number,min 1, max 100 | |
startTime | number | false | eg:1657682804112 | ||
endTime | number | false | |||
hiddenCanceled | bool | false |
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
}
]
}
}