WebSocket
Service Endpoint
WebSocket channels are divided into public channels and private channels:
Public Channels
Public WebSocket does not require authentication. After connecting, send a subscribe request to subscribe to market channels.
Common channels:
Private Channels
listenKey
For private WebSocket streams, create alistenKey through the REST API first, then connect to:JWT
Compatible JWT connection method:After authentication succeeds, the server automatically subscribes the connection to the current user’s private channel. No manual subscription is required.
Choose the next guide
- Connection, Subscription & Heartbeat: connection lifecycle, ping, reconnect, and resubscription.
- Public Market Channels: depth, trades, Klines, tickers, and sequence handling.
- Private User Channel: listenKey lifecycle and authenticated account events.
- Integration Recommendations: monitoring, idempotency, retries, and production testing.