nautilus_model::data::bar

Function get_bar_interval_ns

source
pub fn get_bar_interval_ns(bar_type: &BarType) -> UnixNanos
Expand description

Returns the bar interval as UnixNanos.

ยงPanics

This function panics:

  • If the aggregation method of the given bar_type is not time based.