Skip to main content
Public channels stream market data and require no authentication. The WebsocketClient automatically routes public subscriptions to the correct public WebSocket endpoint for your chosen market.

Setup

Channels

Instruments

Streams instrument definitions for a given instrument type. Emits a snapshot on subscribe, then updates when instruments change.
instType accepts: 'SPOT', 'MARGIN', 'SWAP', 'FUTURES', 'OPTION', 'ANY'.

Tickers

Streams best bid/ask and last trade price for a single instrument.

Trades

Streams individual trade executions as they occur.

Order Books

Multiple depth variants are available.

Candlesticks

A wide range of timeframes is supported on the candle* family of channels. These route through the business WebSocket endpoint.
Available timeframes include: candle1s, candle1m, candle3m, candle5m, candle15m, candle30m, candle1H, candle2H, candle4H, candle6H, candle12H, candle1D, candle2D, candle3D, candle5D, candle1W, candle1M, candle3M, candle6M, candle1Y (plus UTC-aligned variants).

Mark Price

Index Tickers and Candles

Funding Rate

Open Interest

Price Limit

Option Summary

Estimated Delivery / Exercise Price

Liquidation Orders

Platform Status

Handling update events

All channel data arrives on the update event. The payload includes the arg that was used to subscribe and the data array with the update, plus a wsKey identifying the connection.

Subscribing to multiple channels at once

Pass an array to subscribe() to batch multiple subscriptions into a single request.
The client automatically determines whether a channel belongs to the public or business endpoint and routes the subscription accordingly. You do not need to manage connection types manually.