pub fn parse_bar_msg( msg: BarMsg, price_precision: u8, size_precision: u8, instrument_id: InstrumentId, ) -> Bar