行情
訂閱行情數據
重要
該topic推送delta數據和snapshot数据。如果delta數據為空,表明信息沒有發生變化。
推送頻率: 實時
Topic:
tickers.{symbol}
響應參數
- Linear
參數 | 類型 | 說明 |
---|---|---|
topic | string | Topic名稱 |
type | string | 數據類型. `snapshot`,`delta` |
cs | integer | 撮合版本號 |
ts | number | 行情服務生成數據的時間戳 (毫秒) |
data | array | Object |
> symbol | string | 合約名稱 |
> tickDirection | string | 價格變化方向 |
> price24hPcnt | string | 市場價格相對24h前變化的百分比 |
> lastPrice | string | 最新市場成交價 |
> prevPrice24h | string | 24小時前的整點市價 |
> highPrice24h | string | 最近24小時的最高價 |
> lowPrice24h | string | 最近24小時的最低價 |
> prevPrice1h | string | 1小時前的整點市價 |
> markPrice | string | 標記價格 |
> indexPrice | string | 指數價格 |
> openInterest | string | 未平倉合約的數量 |
> openInterestValue | string | 未平倉合約的價值 |
> turnover24h | string | 最近24小時成交額 |
> volume24h | string | 最近24小時成交量 |
> nextFundingTime | string | 下次結算資金費用的時間戳 (毫秒) |
> fundingRate | string | 資金費率 |
> bid1Price | string | 買1價 |
> bid1Size | string | 買1價的數量 |
> ask1Price | string | 賣1價 |
> ask1Size | string | 賣1價的數量 |
推送示例
- Linear
{
"topic": "tickers.BTCUSDT",
"type": "snapshot",
"data": {
"symbol": "BTCUSDT",
"tickDirection": "MinusTick",
"price24hPcnt": "0.017367",
"lastPrice": "17222.00",
"prevPrice24h": "16928.00",
"highPrice24h": "17281.50",
"lowPrice24h": "16915.00",
"prevPrice1h": "17238.00",
"markPrice": "17224.40",
"indexPrice": "17234.84",
"openInterest": "68795.534",
"openInterestValue": "1184961795.83",
"turnover24h": "1572429119.324499",
"volume24h": "91823.449",
"nextFundingTime": "1673280000000",
"fundingRate": "-0.000211",
"bid1Price": "17222.00",
"bid1Size": "220.358",
"ask1Price": "17222.50",
"ask1Size": "3.902"
},
"cs": 24988405605,
"ts": 1673273043686
}