pub fn get_bar_interval(bar_type: &BarType) -> TimeDelta
Returns the bar interval as a TimeDelta.
TimeDelta
Panics if the aggregation method of the given bar_type is not time based.
bar_type