Skip to main content

create_spread_instrument_id

Function create_spread_instrument_id 

Source
pub fn create_spread_instrument_id(
    legs: &[(InstrumentId, i32)],
) -> Result<InstrumentId>
Expand description

Creates a generic spread instrument ID from IB-compatible leg ratios.

ยงErrors

Returns an error if the legs do not satisfy the generic spread grammar.