info
endpoint with type: "spotClearinghouseState"
retrieves a user’s token balances for spot trading on the Hyperliquid exchange. This endpoint provides detailed information about available balances, held amounts in open orders, and entry notional values for all spot tokens in the user’s account.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
Request body
type
(string, required) — The request type. Must be"spotClearinghouseState"
to retrieve user’s spot token balances.user
(string, required) — Onchain address in 42-character hexadecimal format (e.g.,0x2ba553d9f990a3b66b03b2dc0d030dfc1c061036
).
Response
The response contains detailed balance information:Balances
An array of the user’s spot token balances:coin
(string) — Token symbol (e.g., “USDC”, “PURR”).token
(integer) — Token index identifier used internally by the exchange.hold
(string) — Amount currently on hold (locked in open orders or pending transactions).total
(string) — Total balance including both available and held amounts.entryNtl
(string) — Entry notional value, used for PnL calculations and tracking cost basis.
Balance calculation
The available balance for trading can be calculated as:total
is “14.625485” and hold
is “0.0”, then the available balance is “14.625485”.
Example request
Shell
Use case
Theinfo
endpoint with type: "spotClearinghouseState"
is essential for spot trading applications that need to:
- Display user’s current spot token balances
- Calculate available balance for new orders (total - hold)
- Show which tokens are locked in open orders
- Track cost basis and entry values for portfolio management
- Validate order placement against available balances
- Build trading interfaces with real-time balance updates
- Implement portfolio tracking and PnL calculations
Body
application/json
Response
200 - application/json
User's spot token balances
Array of user's spot token balances