跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt

Use this file to discover all available pages before exploring further.

【公共】Ticker频道

获取平台全部永续合约的最新成交价、买一价、卖一价和24交易量。

推送规则

  1. 无需用户登录
  2. 订阅后会直接返回当前的数据,之后有变化才推送
  3. 订阅后1秒发送一次

请求

请求
{
  "action":"subscribe",
  "args":["futures/ticker:BTCUSDT"]
}
消息格式: {"action":"subscribe","args":["<channel>:<symbol>"]}
  • action: subscribe
  • channel: 频道名, 如futures/ticker, 固定值
  • symbol: 交易对, 如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"
}
返回data字段说明:
字段数据类型描述
symbolString合约交易对(如BTCUSDT)
last_priceString最新价格
volume_24String24小时成交张数
rangeString涨跌幅
mark_priceString标记价格
index_priceString指数价格
ask_priceString卖盘一档(卖一)价格
ask_volString卖盘一档(卖一)挂单张数
bid_priceString买盘一档(买一)价格
bid_volString买盘一档(买一)挂单张数