查询最近成交列表
类型: GET
描述: /v4/public/trade/recent
参数
| 名称 | 类型 | 是否必需 | 默认值 | 描述 | 取值范围 |
|---|---|---|---|---|---|
| symbol | string | true | 交易对 | ||
| limit | number | false | 200 | 1~1000 |
限流规则
10次/秒/IP
请求示例
Request
curl --location --request GET 'https://sapi.xt.com/v4/public/trade/recent?symbol=XT_USDT&limit=200' \
--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
}
]
}