Hyperliquid Account State
hyperliquid_account_statePerpetuals account state for one Hyperliquid wallet address -- two separate flags (account_has_balance: non-zero account value, idle dust included; account_has_open_perp_positions: a position is open or notional / margin is non-zero), then account value, total notional, margin used, withdrawable, cross-maintenance margin, and every open perp position (coin, signed size where negative = short, entry price, position value, unrealized PnL, ROE, liquidation price, leverage, margin used, cumulative funding). Public on-chain data, keyless. Use for "what is this Hyperliquid wallet's position / margin / leverage". Returns aggregates first, positions last. e.g. {address:"0x31dea2516beee92135b96f464eeec3cf292a13f2"}.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "0x31dea2516beee92135b96f464eeec3cf292a13f2"
},
"name": "hyperliquid_account_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | 0x-prefixed 42-character wallet address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| source | No | ||
| address | No | ||
| positions | No | ||
| snapshot_time | No | ||
| withdrawable_usd | No | ||
| account_value_usd | No | ||
| account_has_balance | No | ||
| open_position_count | No | ||
| total_margin_used_usd | No | ||
| total_notional_position_usd | No | ||
| account_has_open_perp_positions | No | ||
| cross_maintenance_margin_used_usd | No |