Function decode_bar_type

Source
pub fn decode_bar_type(
    msg: &OhlcvMsg,
    instrument_id: InstrumentId,
) -> Result<BarType>
Expand description

ยงErrors

Returns an error if rtype is not a supported bar aggregation.