Authentication
Pass your API key as thetoken query parameter on the WebSocket URL.
(Browsers don’t allow Authorization headers on WebSocket() calls,
so we accept the token in the URL — same secret, different transport.)
Subscribe
Once the socket opens, send a subscribe frame:ack:
Snapshot frame
/v1/snapshots,
just delivered via push instead of pull.
Keep-alive
The server sends a{"type": "ping"} every 25 s. If you don’t reply
with {"type": "pong"} within 30 s, the connection closes. Your
WebSocket library probably does this for you (ws on Node, websockets
on Python both handle it transparently).
Reconnect
If you drop, simply reconnect and re-send your subscribe frame. There’s no replay window — snapshots missed during the gap are gone, so backfill viaGET /v1/snapshots
if you need them.