SpotBalance

Documentation for eth_defi.hyperliquid.api.SpotBalance Python class.

class SpotBalance

Bases: object

A single spot token balance on HyperCore.

Returned inside SpotClearinghouseState.

Attributes summary

coin

Token symbol (e.g.

token

Token index on HyperCore

total

Total balance (decimal string parsed to Decimal)

hold

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
Return type

None