查询历史成交列表
GET
/az/spot/public/trade/history
限流规则
10/s/ip
请求参数
| 参数 | 类型 | 是否必须 | 默认值 | 描述 | 取值范围 |
|---|---|---|---|---|---|
| symbol | string | true | 交易对 | ||
| limit | number | false | 200 | 数量 | 1,1000 |
| direction | string | true | 查询方向 | PREV-上一页,NEXT-下一页 | |
| fromId | number | false | 起始ID,eg: 6216559590087220004 |
Response
{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"hasPrev": false, //是否有上一页
"hasNext": true, //是否有下一页
"items": [
{
"i": 0, //ID
"t": 0, //成交时间(time)
"s": "btc_usdt", //交易对(symbol)
"p": "string", //成交价(price)
"a": "string", //成交量(quantity, base)
"v": "string", //成交额(volume, quote)
"m": "BID" //taker方向: BID或ASK
}
]
}
}