pub fn topic_from_bar_spec(spec: BarSpecification) -> BitmexWsTopic
Expand description
Converts a bar specification to a WebSocket topic.
ยงPanics
Panics if the specification is not one of the supported values (1m, 5m, 1h, or 1d).
pub fn topic_from_bar_spec(spec: BarSpecification) -> BitmexWsTopic
Converts a bar specification to a WebSocket topic.
Panics if the specification is not one of the supported values (1m, 5m, 1h, or 1d).