Skip to main content

make_instrument_id

Function make_instrument_id 

Source
pub fn make_instrument_id(
    market_id: &str,
    selection_id: u64,
    handicap: Decimal,
) -> InstrumentId
Expand description

Constructs a Nautilus [InstrumentId] from Betfair market and selection identifiers.

Format: "{market_id}-{selection_id}.BETFAIR" or "{market_id}-{selection_id}-{handicap}.BETFAIR" when handicap is non-zero.