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_

§Arguments

  • instrument_id - The instrument ID to check

§Returns

Returns true if the instrument ID appears to be a spread.