Skip to main content

Query entrust historical orders

GET

/az/spot/entrust-order/history

Limit Flow Rules​

10/s/apikey

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringfalseTrading pair, if not filled in, represents all
bizTypestringfalseSPOT
typestringfalseentrust order type, only ENTRUST_PROFIT, ENTRUST_TRACK
sidestringfalseBUY,SELL
statestringfalseentrust order state: NEW, TRIGGERED, EXPIRED, CANCELED
fromIdnumberfalsestart id
directionstringfalsequery direction:PREV, NEXT
limitnumberfalse20Limit number, max 100
startTimenumberfalseeg:1657682804112
endTimenumberfalse
hiddenCanceledboolfalse

Response

{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"hasPrev": true,
"hasNext": true,
"items": [ //For field information, refer to the Get single entrust order interface
{
"id": "6216559590087220004",
"clientOrderId": "16559590087220001",
"accountId": 123456,
"userId": "123456",
"symbolId": 1001,
"symbol": "BTC_USDT",
"side": "1",
"type": "3",
"timeInForce": "1",
"bizType": "1",
"price": "40000",
"quantity": "2",
"quoteQty": "48000",
"triggerPrice": "41000",
"currentPrice": "40500",
"activePrice": "40000",
"turnRate": "2",
"priceDiff": "2",
"extremePrice": "40000",
"closed": true,
"closedTime": 1655971400834,
"state": "2",
"activeState": "1",
"triggerTime": 1655971400834,
"triggerState": "1",
"rejectReason": "string",
"ip": "127.0.0.1",
"createdTime": 1655958915583,
"updatedTime": 1655958915583
}
]
}
}