Skip to main content

bybit_interval_to_bar_spec

Function bybit_interval_to_bar_spec 

Source
pub fn bybit_interval_to_bar_spec(
    interval: &str,
) -> Option<(usize, BarAggregation)>
Expand description

Converts a Bybit kline interval string to a Nautilus bar aggregation and step.

Bybit interval strings: 1, 3, 5, 15, 30, 60, 120, 240, 360, 720 (minutes/hours), D, W, M