Skip to main content

parse_index_price

Function parse_index_price 

Source
pub fn parse_index_price(
    instrument_id: InstrumentId,
    price: f64,
    price_precision: u8,
    price_magnifier: i32,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Result<IndexPriceUpdate>
Expand description

Parse IB index price data into an [IndexPriceUpdate].

ยงErrors

Returns an error if the price conversion fails.