Klines

{
    "id":1545910660739,
    "type":"subscribe",
    "topic":"/contractMarket/limitCandle:XBTUSDTM_1hour",
    "response":true
}
{
    "type":"message",
    "topic":"/contractMarket/limitCandle:XBTUSDTM_1hour",
    "subject":"candle.stick",
    "data":{
        "symbol":"XBTUSDTM",    //symbol
        "candles":[
            "1714964400",       //Start time of the candle cycle
            "63815.1",          //open price
            "63890.8",          //close price
            "63928.5",          //high price
            "63797.8",          //low price
            "17553.0",          //Transaction volume(This value is incorrect, please do not use it, we will fix it in subsequent versions)
            "17553"             //Transaction amount
        ],
        "time":1714964823722    // now(ms)
    }
}

Topic: /contractMarket/limitCandle:{symbol}_{type}

  • Push frequency: Pushed when there is a change in the K-line, up to 1 push per second
Param Description
symbol symbol
type 1min, 3min, 5min, 15min, 30min, 1hour, 2hour, 4hour, 8hour, 12hour, 1day, 1week, 1month

Subscribe to this topic to get K-Line data.