pub fn parse_spot_account_balances(
state: &SpotClearinghouseState,
) -> Result<Vec<AccountBalance>>Expand description
Parses Hyperliquid spot clearinghouse state into Nautilus account balances.
Emits one [AccountBalance] per non-zero spot token, deriving free from
total - hold. Tokens unknown to the global currency registry are registered
on the fly with 8-decimal precision (matches Hyperliquid’s sz_decimals cap).
§Errors
Returns an error if any balance cannot be converted to a Nautilus Money.