pub fn bar_spec_to_bybit_interval(
aggregation: BarAggregation,
step: u64,
) -> Result<String>Expand description
Converts a Nautilus bar aggregation and step to a Bybit kline interval string.
Bybit supported intervals: 1, 3, 5, 15, 30, 60, 120, 240, 360, 720 (minutes), D, W, M
ยงErrors
Returns an error if the aggregation type or step is not supported by Bybit.