Ticks Stream (ticks)¶
Initiate a continuous stream of spot price updates for a given symbol.
-
ticks
(ticks: Union[List, str], subscribe: Optional[Union[bool, int]] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int¶ Parameters: - ticks (Union[List, str]) – The short symbol name or array of symbols (obtained from active_symbols call).
- subscribe (Optional[Union[bool, int]]) – [Optional] If set to 1, will send updates whenever a new tick is received.
- passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
- req_id (Optional[int]) – [Optional] Used to map request to response.
Returns: req_id
Return type: int