Skip to main content
All WebSocket messages are exchanged as JSON objects. Every message includes an op field that identifies the operation or message type. The optional req_id field can be used to correlate client requests with their corresponding server responses.

Client → Server

OperationPurpose
authAuthenticate using a JWT access token
auth_api_keyAuthenticate using an API key
subscribeSubscribe to one or more topics
unsubscribeUnsubscribe from one or more topics
pingKeep the connection alive and measure round-trip latency
Example:

Server → Client

OperationPurpose
authAuthentication result
subscribedSubscription confirmation
unsubscribedUnsubscription confirmation
pongResponse to a ping message
errorError response
eventReal-time event payload

Event Envelope

All streaming updates are delivered using the following envelope:
Order book events may also include a type field (snapshot vs delta). See the Public WebSocket Reference and Private WebSocket Reference for complete message schemas and payload definitions.