Websocket Market Streams
Live Subscribing/Unsubscribing to streams
- The following data can be sent through the websocket instance in order to subscribe/unsubscribe from streams. Examples can be seen below.
- The
idused in the JSON payloads is an unsigned INT used as an identifier to uniquely identify the messages going back and forth.
Subscribe to a stream
Request
Code
Response
Code
Unsubscribe to a stream
Request
Code
Response
Code
Listing Subscriptions
Request
Code
Response
Code
Setting Properties
Currently, the only property can be set is to set whether combined stream payloads are enabled are
not. The combined property is set to false when connecting using /ws/ ("raw streams") and true
when connecting using /stream/.
Request
Code
Response
Code
Retrieving Properties
Request
Code
Response
Code
Was this page helpful?
Last modified on