Authentication and renewal
- Request a ticket from
GET /auth/ws-ticketwith a browser session orss_...API token. - Open the socket and send
authenticatewithin five seconds. - Subscribe only after authentication succeeds.
- Request and send a new ticket before the 60-second ticket expires.
expires_at and server_time to calculate its remaining lifetime. Renew before that duration ends, rather than relying only on the local clock.
The socket accepts only WebSocket tickets. It rejects session JWTs and API tokens in the frame.
Subscribe and synchronize
synchronize. Wait for {"control":"synchronized"}. Then refetch every REST resource that depends on the stream.
Rooms
One connection can subscribe to at most 32 rooms. It accepts at most 240 client frames per minute and 2 KB per frame.
Events and controls
Event types arePoolLaunch, PoolStats, Ohlcv, Trade, BalanceChange, and ProtocolConfigChanged.
Treat ProtocolConfigChanged as invalidation data. Fetch:
503 protocol_revision_pending, wait for Retry-After. Discard or requote any route whose protocol_revision is older than the event revision.
Known controls are synchronized and resync_required. On resync_required, refetch affected REST state. Ignore unknown future control values.