跳至主要内容

歷史訂單查詢

GET

/az/spot/history-order

限流規則​

10/s/apikey

請求參數​

參數類型是否必須默認值描述取值範圍
symbolstringfalse交易對,不傳代表所有
bizTypestringfalse業務類型 SPOT-現貨, PREDICTION-預測市場
sidestringfalseBUY-買,SELL-賣
typestringfalse訂單類型 LIMIT-限價, MARKET-市價
statestringfalse訂單狀態 NEW-新建,PARTIALLY_FILLED-部分成交,FILLED-全部成交,CANCELED-用戶撤單,REJECTED-下單失敗,EXPIRED-過期(time_in_force撤單或溢價撤單)
fromIdnumberfalse起始ID
directionstringfalse查詢方向:PREV, NEXT
limitnumberfalse20限制數量,最大100
startTimenumberfalse開始時間 eg:1657682804112
endTimenumberfalse結束時間
hiddenCanceledboolfalse隱藏已取消

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
}
]
}
}