SpotBalance
Documentation for eth_defi.hyperliquid.api.SpotBalance Python class.
- class SpotBalance
Bases:
objectA single spot token balance on HyperCore.
Returned inside
SpotClearinghouseState.Attributes summary
Token symbol (e.g.
Token index on HyperCore
Total balance (decimal string parsed to
Decimal)Amount on hold (reserved for orders)
Methods summary
__init__(coin, token, total, hold)- coin: str
Token symbol (e.g.
"USDC","HYPE")
- token: int
Token index on HyperCore
- total: decimal.Decimal
Total balance (decimal string parsed to
Decimal)
- hold: decimal.Decimal
Amount on hold (reserved for orders)
- __init__(coin, token, total, hold)
- Parameters
coin (str) –
token (int) –
total (decimal.Decimal) –
hold (decimal.Decimal) –
- Return type
None