decode_ohlcv_msg

Function decode_ohlcv_msg 

Source
pub fn decode_ohlcv_msg(
    msg: &OhlcvMsg,
    instrument_id: InstrumentId,
    price_precision: u8,
    ts_init: Option<UnixNanos>,
    timestamp_on_close: bool,
) -> Result<Bar>
Expand description

ยงErrors

Returns an error if decoding the OHLCV message fails.