跳到主要内容

历史订单查询

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