歷史訂單查詢
GET
/az/spot/history-order
限流規則
10/s/apikey
請求參數
| 參數 | 類型 | 是否必須 | 默認值 | 描述 | 取值範圍 |
|---|---|---|---|---|---|
| symbol | string | false | 交易對,不傳代表所有 | ||
| bizType | string | false | 業務類型 SPOT-現貨, PREDICTION-預測市場 | ||
| side | string | false | BUY-買,SELL-賣 | ||
| type | string | false | 訂單類型 LIMIT-限價, MARKET-市價 | ||
| state | string | false | 訂單狀態 NEW-新建,PARTIALLY_FILLED-部分成交,FILLED-全部成交,CANCELED-用戶撤單,REJECTED-下單失敗,EXPIRED-過期(time_in_force撤單或溢價撤單) | ||
| 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": [ //內容信息參考單筆獲取訂單接口
{
"symbol": "BTC_USDT",
"orderId": "6216559590087220004",
"clientOrderId": "16559590087220001",
"rfq": false,
"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",
"nftId": "string",
"symbolType": "normal",
"origRestFee": "string",
"origFeeCurrency": "string",
"platFormCurrencyFee": "string",
"platFormCurrency": "string",
"couponAmount": "string",
"couponCurrency": "string",
"couponDeductFee": "string",
"closed": false,
"state": "NEW",
"time": 1655958915583,
"ip": "127.0.0.1",
"updatedTime": 1655958915583
}
]
}
}