Skip to main content

get_bar_interval

Function get_bar_interval 

Source
pub fn get_bar_interval(bar_type: &BarType) -> SignedDuration
Expand description

Returns the bar interval as a [SignedDuration].

ยงPanics

Panics if the aggregation method of the given bar_type is not time based, or if step is too large for the interval arithmetic.