跳到主要内容

获取深度数据

类型: GET 描述: /v4/public/depth

参数

名称类型是否必需默认值描述取值范围
symbolstringtrue交易对 例如:btc_usdt
limitnumberfalse100最小查询数量为 1001~500

限流规则

10次/秒/IP

请求示例

Request
  curl --location --request GET 'https://sapi.xt.com/v4/public/depth?symbol=XT_USDT&limit=100' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \

响应示例

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"timestamp": 1662445330524, // 时间戳
"lastUpdateId": 137333589606963580, // 最后更新记录
"bids": [
["200.0000", "0.996000"],
["100.0000", "0.001000"],
["20.0000", "10.000000"]
], // 买盘 [价位,挂单量]
"asks": [] // 卖盘 [价位,挂单量]
}
}