pub fn decode_bar_type( msg: &OhlcvMsg, instrument_id: InstrumentId, ) -> Result<BarType>
Returns an error if rtype is not a supported bar aggregation.
rtype