WebSocket
WebSocket Reference
Stream prices and account updates over a single multiplexed socket.
Quickstart Client
Error Codes & Reconnects
Scenario | Error | Action |
---|---|---|
Invalid API key | Error in order stream: UNAUTHENTICATED | Verify key in Settings › API keys |
Socket closed | RuntimeError: WebSocket is closed | Reconnect & re‑subscribe (server stateless) |
Snapshot timeout | type: "error" envelope | Retry with back‑off; check symbol spelling |