pub fn parse_spot_instruments(
meta: &SpotMeta,
) -> Result<Vec<HyperliquidInstrumentDef>, String>
Expand description
Parse spot instrument definitions from Hyperliquid spotMeta
response.
Hyperliquid spot follows these rules:
- Price decimals = max(0, 8 - base_sz_decimals) per venue docs
- Size decimals from base token
- All pairs are loaded (including non-canonical) to support parsing fills/positions for instruments that may have been traded