Skip to main content

topic_from_bar_spec

Function topic_from_bar_spec 

Source
pub fn topic_from_bar_spec(spec: BarSpecification) -> BitmexWsTopic
Expand description

Converts a bar specification to a WebSocket topic.

Returns TradeBin1m and logs an error for unsupported specifications.