Learn how to establish and maintain a WebSocket connection to stream real-time market data
websockets
library automatically handles WebSocket ping/pong frames to keep connections alive. No manual heartbeat handling is required. Learn more about automatic keepalive in the websockets documentation.Other WebSocket libraries may require manual ping/pong implementation.invalid_auth
: Authentication failedinvalid_market
: Market ticker not foundrate_limit
: Too many requestsinvalid_action
: Unknown commandKEY_ID
with your API key IDPRIVATE_KEY_PATH
with the path to your private key fileMARKET_TICKER
with any open market ticker