查询历史成交列表
类型: GET 描述: /v4/public/trade/history
参数
| 名称 | 类型 | 是否必需 | 默认值 | 描述 | 取值范围 |
|---|---|---|---|---|---|
| symbol | string | true | 交易对 | ||
| limit | number | false | 200 | 1~1000 | |
| direction | string | true | 查询方向 | PREV - 上一页,NEXT - 下一页 | |
| fromId | number | false | 起始 ID,例如 6216559590087220004 |
限流规则
10次/秒/IP
请求示例
Request
curl --location --request GET 'https://sapi.xt.com/v4/public/trade/history?symbol=XT_USDT&limit=200&direction=NEXT' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
响应示例
Response
{
"rc": 0,
"mc": "string",
"ma": [{}],
"result": [
{
"i": 0, // ID
"t": 0, // 成交时间
"p": "string", // 成交价
"q": "string", // 成交量
"v": "string", // 成交额
"b": true // 是否是buyerMaker
}
]
}