Expand description
WebSocket client for dYdX v4 API.
This client provides streaming connectivity to dYdX’s WebSocket API for both public market data and private account updates.
§Authentication
dYdX v4 uses Cosmos SDK wallet-based authentication. Unlike traditional exchanges:
- Public channels require no authentication.
- Private channels (subaccounts) only require the wallet address in the subscription message.
- No signature or API key is needed for WebSocket connections themselves.
§References
Structs§
- Dydx
WebSocket Client - WebSocket client for dYdX v4 market data and account streams.
Constants§
- DYDX_
RATE_ LIMIT_ KEY_ SUBSCRIPTION - Rate limit key for subscription operations (subscribe/unsubscribe).
- DYDX_
WS_ TOPIC_ DELIMITER - WebSocket topic delimiter for dYdX (channel:symbol format).
Statics§
- DYDX_
WS_ SUBSCRIPTION_ QUOTA - Default WebSocket quota for dYdX subscriptions (2 messages per second).