Skip to main content

extract_market_id

Function extract_market_id 

Source
pub fn extract_market_id(instrument_id: &InstrumentId) -> Result<String>
Expand description

Extracts the Betfair market ID from a Nautilus instrument ID.

Instrument IDs follow the format {market_id}-{selection_id}.BETFAIR or {market_id}-{selection_id}-{handicap}.BETFAIR.

ยงErrors

Returns an error if the symbol does not contain a hyphen separator.