pub fn extract_asset_id_from_symbol(symbol: &str) -> Result<AssetId>
Expand description
Extracts asset ID from instrument symbol.
For Hyperliquid, this typically involves parsing the symbol to get the underlying asset. Currently supports a hardcoded mapping for common assets.
ยงErrors
Returns an error if the symbol format is unsupported or the asset is not found.