Skip to content

Real-time K-line

General WSS information

  • Crypto subscriptions are subscribed in the form of symbol@market (for example: BTC-USDT@dcex). Multiple crypto subscriptions are separated by / (for example: BTC-USDT@dcex/ETH-USDT@dcex/DOGE-USDT@dcex).

WebSocket Limits

  • Each access IP is limited to a maximum of 1024 WebSocket connections.
  • Each WebSocket connection has a maximum of 200 subscription combinations. If this limit is exceeded, the subscription will be truncated.

Subscribe to K-line (period: 1 minute)

Subscribe to 1-minute K-line data streams for cryptocurrencies. K-line data provides aggregated trading information over a specific time period (1 minute), including open, high, low, close prices, volume, and turnover for each minute interval.

Key Characteristics:

  • Time-based aggregation: Data is aggregated and pushed every minute
  • Historical context: Each K-line represents a complete 1-minute trading period
  • OHLC format: Provides Open, High, Low, Close prices for technical analysis
  • Volume data: Includes trading volume and turnover for the period
  • Update frequency: New data is pushed at the end of each minute
bash
wss://{base_url}/ws/market/v1/kline?symbols={symbol@market}

Example

bash
wss://{base_url}/ws/market/v1/kline?symbols=BTC-USDT@dcex/ETH-USDT@dcex

Description

CodeTypeDescription
symbolSTRINGCrypto Symbol
timeSTRINGTime
openDECIMALOpen Price
highDECIMALHighest Price
lowDECIMALLowest Price
closeDECIMALClose Price
volumeDECIMALVolume
turnoverDECIMALTurnover

JSON Example

json
{
    "type": "kline",
    "data": {
        "symbol": "BTC-USDT",
        "time": "2025-05-30 15:50:00",
        "open": 45498.6,
        "high": 45598.6,
        "low": 45398.6,
        "close": 45498.6,
        "volume": 1.25,
        "turnover": 56873.25
    }
}