Skip to main content
The Realtime API streams DerivaDEX market data and account-specific updates over one WebSocket connection.
Clients send subscribe and unsubscribe messages on the connection and receive an acknowledgement with the same nonce. Market-data feeds send an initial PARTIAL snapshot before UPDATE messages. User-data feeds start with an empty PARTIAL, so clients fetch current order, strategy, and trader state with REST before applying realtime updates.

Subscription control

Public market-data feeds

Market-data filters

User-data feeds

User-data filters

Trader addresses are prefixed with the blockchain discriminant. For Ethereum, the address is prefixed with 0x00. strategyIdHash is the first 4 bytes of the keccak256 hash of the strategy ID encoded as a 32-byte value. The default main strategy hashes to 0x2576ebd1.

Common payload fields

Update reason codes

Rejection codes

Integration notes

Last modified on May 7, 2026