WebSocket Public Market Data Channels
Use public market channels when an application needs continuously updated prices, trades, candlesticks, or order-book depth without repeatedly polling REST endpoints. These streams can support trading screens, price displays, alerts, and market monitoring.
Connection URL
Public WebSocket does not require authentication.
For connection lifecycle, unsubscribe, ping, and reconnect behavior, see Connection, Subscription & Heartbeat.
Common Channels
Choose a channel
Subscription Example
Push Message Wrapper
Use topic to route each message to the correct handler and ts to observe delivery timing. The data object contains the payload for the subscribed channel.
Order-book handling
The depth channel sends a snapshot first and then incremental updates. Initialize the local book from the snapshot before applying updates. After reconnecting, create a new session, subscribe again, and rebuild the local book from the next snapshot instead of continuing from stale in-memory state.
Production recommendations
- Generate a unique
idfor every subscribe, unsubscribe, and ping request. - Confirm subscription acknowledgements before treating a channel as active.
- Resubscribe to every required topic after reconnecting.
- Keep network reads separate from slower database or UI processing.
- Monitor disconnect frequency, message-processing lag, and malformed payloads.
- Use Private User Channel for authenticated account and order updates.