parse_bar

Function parse_bar 

Source
pub fn parse_bar(
    ohlc: &OhlcData,
    instrument: &InstrumentAny,
    bar_type: BarType,
    ts_init: UnixNanos,
) -> Result<Bar>
Expand description

Parses a Kraken OHLC entry into a Nautilus bar.

ยงErrors

Returns an error if:

  • OHLC values cannot be parsed.
  • Timestamp is invalid.