create_instrument_from_def

Function create_instrument_from_def 

Source
pub fn create_instrument_from_def(
    def: &HyperliquidInstrumentDef,
) -> Option<InstrumentAny>
Expand description

Converts a single Hyperliquid instrument definition into a Nautilus InstrumentAny.

Returns None if the conversion fails (e.g., unsupported market type).