balances[].total, whether a total-equity field exists, and whether spotClearinghouseState and clearinghouseState have a documented snapshot or consistency relationship.
The issue is framed as a read-only API/schema question, not a request for trading advice.
What the issue asks
- What does
balances[].totalmean for a canonical collateral token?
balances[].total represents a cash or token balance, or whether it already includes unrealized cross-perpetual PnL.
- Is there a documented total-equity field?
- Do the spot and perp clearinghouse states share a snapshot timestamp or consistency guarantee?
spotClearinghouseState and clearinghouseState. It notes that the spot response shown in the issue has no timestamp. If no atomic-snapshot guarantee exists, the issue asks that the documentation distinguish local receipt time from a server as-of time and clarify that the two responses are not an atomic snapshot.
What is not confirmed by the issue
The issue does not confirm that balances[].total includes unrealized cross-perpetual PnL. It does not identify a documented total-equity field. It does not confirm that spotClearinghouseState and clearinghouseState share a server timestamp, snapshot version, or atomic-snapshot guarantee.
Because the issue is unresolved in the provided source, the safe reading is to treat the field meanings and snapshot timing as open documentation questions rather than established API behavior.
Practical reading for API consumers
A conservative approach is to keep balances, equity, and observation timing separate.
Like what you're reading? Try it yourself โ this link supports ChartedTrader at no cost to you.
Create a Hyperliquid account; referrals can receive a 4% fee discount on the first $25M of volume per account, excluding Vaults and sub-accounts. โ- Do not assume
balances[].totalincludes unrealized cross-perp PnL unless the official documentation says so. - Do not assume a total-equity field exists unless it is documented.
- Record the local receipt time for each API response.
- Do not combine
spotClearinghouseStateandclearinghouseStateas one atomic state unless the documentation provides a snapshot, version, or consistency guarantee. - If building a monitoring tool, use only documented fields and label any derived equity calculation as an assumption.
Source
Hyperliquid Python SDK GitHub issue 346: Docs: unifiedAccount collateral balance vs equity and snapshot timingAffiliate disclosure
If you create an account through the Hyperliquid link, we may earn a referral commission. Referrals can receive a 4% fee discount on the first $25M of volume per account, excluding Vaults and sub-accounts.
Continue with Hyperliquid
Browse the Hyperliquid guide hub for the complete user journey.
Related: How to Create a Hyperliquid User Vault and Become a Legacy Vault Leader