委託歷史訂單查詢
GET
/az/spot/entrust-order/history
限流規則
10/s/apikey
請求參數
| 參數 | 類型 | 是否必須 | 默認值 | 描述 | 取值範圍 |
|---|---|---|---|---|---|
| symbol | string | false | 交易對,不傳代表所有 | ||
| bizType | string | false | 業務類型 SPOT-現貨 | ||
| type | string | false | 委託類型,僅限 ENTRUST_PROFIT, ENTRUST_TRACK | ||
| side | string | false | BUY-買,SELL-賣 | ||
| state | string | false | 委託訂單狀態:NEW-新建, TRIGGERED-已觸發, EXPIRED-已過期, CANCELED-已撤銷 | ||
| fromId | number | false | 起始ID | ||
| direction | string | false | 查詢方向:PREV, NEXT | ||
| limit | number | false | 20 | 限制數量,最大100 | |
| startTime | number | false | 開始時間 eg:1657682804112 | ||
| endTime | number | false | 結束時間 | ||
| hiddenCanceled | bool | false | 隱藏已取消 |
Response
{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"hasPrev": true,
"hasNext": true,
"items": [ //字段信息參考委託單筆獲取接口
{
"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
}
]
}
}