parse_bar_spec

Function parse_bar_spec 

Source
pub fn parse_bar_spec(value: &str) -> Result<BarSpecification>
Expand description

Parses a Nautilus bar specification from the given Tardis string value.

The [PriceType] is always LAST for Tardis trade bars.

ยงErrors

Returns an error if the specification format is invalid or if the aggregation suffix is unsupported.