1. Connection Endpoint
2. Subscription Protocol
Clients subscribe to topics by sending JSON messages over the connection:3. Available Channels
trades Channel
Broadcasts individual executed fills (opens, closes, liquidations).
Message Payload:
ticker Channel
Emits real-time mark price, 24h volume, funding rates, and open interest on every block.
candles Channel
Emits real-time candlestick bars for live charting updates.
4. Heartbeats (Ping / Pong)
To prevent connection drops through network proxies:- Clients should send
{"op": "ping"}every 30 seconds. - The server will respond with
{"op": "pong"}.