method field set to "subscribe" or "unsubscribe", and a subscription object that specifies the channel type and any required parameters. The server acknowledges each request and begins (or stops) pushing messages on that channel.
Subscribing to a channel
Send the following JSON frame to start receiving messages on a channel:subscriptionResponse acknowledgement:
data field mirrors your original request so you can match acknowledgements to subscriptions in async code.
Unsubscribing from a channel
Send the samesubscription object with "method": "unsubscribe" to stop receiving messages:
subscriptionResponse with "method": "unsubscribe" to confirm.
Error messages
If a subscription request is invalid, the server responds on theerror channel:
All subscription types and parameters
The table below lists every channel type, its required parameters, and whether authentication is needed.
* Private channels accept the account address in the
user field without requiring a prior Auth message today. Authenticating first is recommended for forward compatibility.
Quick examples by channel type
- l2Book
- bbo
- trades
- candle
- orderUpdates
- openOrders
- userFills
- config