Websocket Streams
Last updated
Was this helpful?
Last updated
Was this helpful?
Developers can easily connect to the Standard WebSocket API to stream available market and orderbook data. We recommend using a single connection to subscribe to multiple topics. Each subscription requires the following fields:
id
An identifier chosen by the developer to easily match WebSocket responses to their corresponding subscriptions. id is used for filtering duplicate responses on stream.
method
Specifies the topic to subscribe or unsubscribe from.
params
Parameters specific to the subscription topic. When unsubscribing, the params must match the original subscription.
Example from command line using :
Each stream will return in a form of array with predefined schema. This matters in high-frequency data (e.g. trades, price ticks), especially when sending thousands of updates per second.