行情
訂閱行情數據
覆蓋範圍: 正向合約,反向合約,期權
重要
- 期貨,該topic推送delta數據和snapshot数据。如果delta數據為空,表明信息沒有發生變化。
- 期權只推送snapshot類型數據
推送頻率: 100ms
Topic:
tickers.{symbol}
響應參數
- Linear/Inverse
- Option
參數 | 類型 | 說明 |
---|---|---|
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價的數量 |
參數 | 類型 | 說明 |
---|---|---|
topic | string | Topic名稱 |
id | string | 消息id |
type | string | 數據類型. `snapshot` |
cs | integer | 撮合版本號 |
ts | number | 行情服務生成數據的時間戳 (毫秒) |
data | array | Object |
> symbol | string | 合約名稱 |
> bidPrice | string | 買1價 |
> bidSize | string | 買1價的數量 |
> bidIv | string | 買1價對應的iv |
> askPrice | string | 賣1價 |
> askSize | string | 賣1價的數量 |
> askIv | string | 賣1價對應的iv |
> lastPrice | string | 最新市場成交價 |
> highPrice24h | string | 最近24小時的最高價 |
> lowPrice24h | string | 最近24小時的最低價 |
> markPrice | string | 標記價格 |
> indexPrice | string | 指數價格 |
> markIv | string | 標記價格對應的iv |
> underlyingPrice | string | 底層資產的價格 |
> openInterest | string | 未平倉合約的數量 |
> turnover24h | string | 最近24小時成交額 |
> volume24h | string | 最近24小時成交量 |
> totalVolume | string | 總成交量 |
> totalTurnover | string | 總成交額 |
> delta | string | Delta |
> gamma | string | Gamma |
> vega | string | Vega |
> theta | string | Theta |
> predictedDeliveryPrice | string | 預估交割價. 交割前30分鐘有值 |
> change24h | string | 過去24小時的變化 |
推送示例
- Linear
- Option
{
"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
}
{
"id": "tickers.BTC-6JAN23-17500-C-2480334983-1672917511074",
"topic": "tickers.BTC-6JAN23-17500-C",
"ts": 1672917511074,
"data": {
"symbol": "BTC-6JAN23-17500-C",
"bidPrice": "0",
"bidSize": "0",
"bidIv": "0",
"askPrice": "10",
"askSize": "5.1",
"askIv": "0.514",
"lastPrice": "10",
"highPrice24h": "25",
"lowPrice24h": "5",
"markPrice": "7.86976724",
"indexPrice": "16823.73",
"markPriceIv": "0.4896",
"underlyingPrice": "16815.1",
"openInterest": "49.85",
"turnover24h": "446802.8473",
"volume24h": "26.55",
"totalVolume": "86",
"totalTurnover": "1437431",
"delta": "0.047831",
"gamma": "0.00021453",
"vega": "0.81351067",
"theta": "-19.9115368",
"predictedDeliveryPrice": "0",
"change24h": "-0.33333334"
},
"type": "snapshot"
}