Skip to main content

format_instrument_id

Function format_instrument_id 

Source
pub fn format_instrument_id(
    venue_symbol: &str,
    product_type: LighterProductType,
) -> InstrumentId
Expand description

Builds a Nautilus [InstrumentId] from a venue symbol and product type.

The venue symbol is upper-cased and combined with the product suffix (-PERP or -SPOT) before being qualified by the Lighter venue.