pub fn ib_bar_to_nautilus_bar(
ib_bar: &Bar,
bar_type: BarType,
price_precision: u8,
size_precision: u8,
) -> Result<Bar>Expand description
Convert IB Bar to Nautilus Bar.
ts_event and ts_init are set to the bar close (bar_close_from_open).
ยงErrors
Returns an error if conversion fails.