The subscribe
method is used to subscribe to a list of subscriptions based on
your provided parameters.
candles
may never be provided as a name-string as it has a
required interval
parameter.A top-level markets
array can be used to allow multiple subscriptions to inherit this array without having define them themselves.
markets
parameter, it will inherit the top-level
markets
array provided here.Optional
cidRequests may optionally provide a cid
parameter to identify the request a response should be associated with.
onResponse
callback object will include the provided cid
as a property.
When providing a top-level markets parameter, we can accept subscriptions using a short-hand of the subscription name only.
markets
parameter, it will inherit the top-level markets array provided.See