K線
{
"id":1545910660739,
"type":"subscribe",
"topic":"/contractMarket/limitCandle:XBTUSDTM_1hour",
"response":true
}
{
"type":"message",
"topic":"/contractMarket/limitCandle:XBTUSDTM_1hour",
"subject":"candle.stick",
"data":{
"symbol":"XBTUSDTM", // 交易對
"candles":[
"1714964400", //candle的開盤時間
"63815.1", //open開票價
"63890.8", //close收盤價
"63928.5", //high最高價
"63797.8", //low最低價
"17553.0", //成交額(此數值有誤,請勿使用,我們會在後續版本中修復)
"17553" //成交量
],
"time":1714964823722 // 當前時間,毫秒
}
}
Topic: /contractMarket/limitCandle:{symbol}_{type}
- 推送頻率:
k线有变化时推送,每秒最多推送1次
參數 | 含義 |
---|---|
symbol | 交易對 |
type | 1min , 3min , 5min , 15min , 30min , 1hour , 2hour , 4hour , 8hour , 12hour , 1day , 1week , 1month |
訂閱成功後,服務端會推送的市場K線數據給您。