parse_bar

Function parse_bar 

Source
pub fn parse_bar(
    candle: &AxCandle,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> Result<Bar>
Expand description

Parses an Ax candle into a Nautilus Bar.

ยงErrors

Returns an error if any OHLCV field cannot be parsed.