Skip to main content

candlestick.{timeframe}.{instrument_name}

CHANNEL 

wss://stream.crypto.com/exchange/v1/market

candlestick.{timeframe}.{instrument_name}
Candlestick (k-line) updates. Subscribe e.g. ["candlestick.1D.BTCUSD-PERP"]. Timeframe: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 12h, 1D, 7D, 14D, 1M.

Request

Body

required
    id integerrequired

    Request id

    method stringrequired

    Possible values: [subscribe]

    params objectrequired
    channels string[]required

    e.g. ["candlestick.1D.BTCUSD-PERP"]

    nonce integerrequired

    Current timestamp in milliseconds

WebSocket response
Schema
    id int64
    method string
    code int32
    result object
    instrument_name string
    subscription string
    channel string
    interval string
    data object[]
  • Array [
  • o decimal

    Open

    h decimal

    High

    l decimal

    Low

    c decimal

    Close

    v decimal

    Volume

    t int64

    Start time of candlestick (Unix timestamp, ms), e.g. "1771761038000".

  • ]