Skip to main content

is_spread_instrument_id

Function is_spread_instrument_id 

Source
pub fn is_spread_instrument_id(instrument_id: &InstrumentId) -> bool
Expand description

Check if an instrument ID represents a spread.

This checks if the symbol contains the spread format pattern: (ratio)symbol_ or ((ratio))symbol_