推送规则
- 无需用户登录
- 订阅后会直接返回当前的数据,之后有变化才推送
- 订阅后1秒发送一次
请求
请求
{"action":"subscribe","args":["<channel>:<symbol>"]}
- action:
subscribe - channel: 频道名, 如
futures/ticker, 固定值 - symbol: 交易对, 如
BTCUSDT
返回
返回
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
请求
{
"action":"subscribe",
"args":["futures/ticker:BTCUSDT"]
}
{"action":"subscribe","args":["<channel>:<symbol>"]}
subscribefutures/ticker, 固定值BTCUSDT返回
{
"data": {
"symbol": "BTCUSDT",
"last_price": "97153.6",
"volume_24": "25502894",
"range": "0.0016599204475393",
"mark_price": "97153.7",
"index_price": "97185.614",
"ask_price": "97153.9",
"ask_vol": "28",
"bid_price": "97153.4",
"bid_vol": "428"
},
"group": "futures/ticker:BTCUSDT"
}
| 字段 | 数据类型 | 描述 |
|---|---|---|
| symbol | String | 合约交易对(如BTCUSDT) |
| last_price | String | 最新价格 |
| volume_24 | String | 24小时成交张数 |
| range | String | 涨跌幅 |
| mark_price | String | 标记价格 |
| index_price | String | 指数价格 |
| ask_price | String | 卖盘一档(卖一)价格 |
| ask_vol | String | 卖盘一档(卖一)挂单张数 |
| bid_price | String | 买盘一档(买一)价格 |
| bid_vol | String | 买盘一档(买一)挂单张数 |