Skip to main content

parse_spread_instrument_id_to_legs

Function parse_spread_instrument_id_to_legs 

Source
pub fn parse_spread_instrument_id_to_legs(
    instrument_id: &InstrumentId,
) -> Result<Vec<(InstrumentId, i32)>>
Expand description

Parses a generic spread instrument ID into IB-compatible leg ratios.

ยงErrors

Returns an error if the ID does not use the generic spread grammar or a ratio is outside the range supported by IB combo legs.