parse_bar_msg

Function parse_bar_msg 

Source
pub fn parse_bar_msg(
    msg: BarMsg,
    price_precision: u8,
    size_precision: u8,
    instrument_id: InstrumentId,
) -> Result<Bar>
Expand description

Parse a bar message into a Bar.

ยงErrors

Returns an error if the bar specification cannot be parsed.