Public-KLine Channel

Get the spot K-line data

Pushing Rules

  1. No user login required
  2. After subscribing, the current data will be returned directly, and then the changes will be pushed

Example

Request
{"op": "subscribe", "args": ["spot/kline1m:BTC_USDT"]}

spot/kline1m is the channel name, BTC_USDT is the trading pair

Channel List
Channel Name Description
spot/kline1m 1-min KLine Channel
spot/kline3m 3-min KLine Channel
spot/kline5m 5-min KLine Channel
spot/kline15m 15-min KLine Channel
spot/kline30m 30-min KLine Channel
spot/kline1H 1-hour KLine Channel
spot/kline2H 2-hour KLine Channel
spot/kline4H 4-hour KLine Channel
spot/kline1D 1-day KLine Channel
spot/kline1W 1-week KLine Channel
spot/kline1M 1-month KLine Channel
Response

(Note: This data is displayed after decompression, Refer to Data Compression for details)

{
    "table":"spot/kline1m",
    "data":[
        {
            "candle":[
                1534141852,
                "162.03",
                "162.04",
                "161.96",
                "161.98",
                "336.452694"
            ],
            "symbol":"ETH_USDT"
        }
    ]
}

Return Parameter Description:

Parameter Type Description
symbol string Trading pair, BTC_USDT
candle List KLine data

Note

An example of returned KLine values: [1534141852, "162.01", "162.02", "162.03", "162.04", "336.452694"]. Timestamp (in seconds), opening price, highest price, lowest price, closing price, trading volume.

results matching ""

    No results matching ""