历史订单查询
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
}
]
}
}