Overview
The WebSocket API requires authentication for a successful connection. The server authenticates your request before upgrading the connection. To connect, provide these HTTP headers:X-API-Key: Your Roxom API Key.X-API-Signature: base64-encoded RSA signature. The payload you should hash isGET:/ws, then sign the digest using your private key.
Error codes
Common WebSocket connection and operation errors:Authentication errors
- 600010 - Authentication failed (invalid API key or signature)
Subscription errors
- 60014 - Invalid channel name (unsupported channel type)
- 60015 - Invalid symbol (trading pair not available)
- 60016 - Subscription limit exceeded (too many active subscriptions)
Protocol errors
- 60017 - Message parsing error (malformed JSON request)
- 60018 - Binary messages not supported (use text messages only)
- 60019 - Internal server error (temporary service issue)
Error response format
Next steps
After establishing a connection, you can:- Subscribe to Market Data streams for real-time quotes and trades
- Enable Account Updates for order and balance notifications