跳到主要内容

指数价格

2026 年 12 月 10 日起强制压缩

自 2026-12-10 16:00(UTC+8)起,公共行情 WebSocket 必须启用 permessage-deflate 压缩,否则连接将被拒绝。详见WebSocket 基本信息。

Index Price ✅​

Request format​

index_price@{symbol}
  • Example: index_price@btc_usdt
  • Push rate: 1000ms

Request example​

Subscribe — After establishing the WebSocket connection, send the following JSON string.

SUBSCRIBE
{
"method": "SUBSCRIBE",
"params": [
"index_price@btc_usdt"
],
"id": "test" // this param could call whatever you want
}

Response example​

{
"topic": "index_price",
"event": "index_price@btc_usdt",
"data": {
"s": "btc_usdt", // symbol
"p": "50000", // price
"t": 123124124 // timestamp
}
}