Hyperliquid Account Balance & Equity logo

Catalog action Hyperliquid

Read a Hyperliquid account's balance and equity from its clearinghouse / user state: account value (total equity), available margin, and used margin (marginSummary), plus withdrawable balance. Also returns active perp positions (each with its own unrealized PnL), resting open orders, and HIP-4 outcome token holdings. Set balanceOnly: true for a cheap equity/balance read that skips position aggregation (positions, open orders and outcome holdings come back empty). Ideal for: live-equity position sizing, portfolio monitoring, risk and margin-health checks, and pre-trade balance gates.

At a Glance

FieldValue
Action IDhyperliquid-get-account
CategoryHyperliquid
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagshyperliquid, perps, positions, portfolio, balance

Payload Schema

FieldTypeRequiredDescription
addressstringYesHyperliquid account address (0x...) to inspect. Hyperliquid account state is public, so any address can be queried — pass the wallet you want to read (e.g. the user's connected wallet, or an arbitrary account for read-only lookups).
dexstringNoHIP-3 DEX name for TradFi markets. Omit for standard crypto perps. xyz = trade.xyz (stocks, indices, commodities), flx = flx.finance, vntl = vntl.exchange
balanceOnlybooleanNoWhen true, fetch only the balance figures (accountValue, availableBalance, withdrawable, margin mode) and skip the open-orders / mark-price / position aggregation — the positions, openOrders and outcomePositions arrays are returned empty. Much cheaper against Hyperliquid rate limits; use for balance-gate checks where positions are not needed.

Result Schema

FieldTypeRequiredDescription
accountValuestringYesTotal account value in USD. Mode-aware: for unified/portfolio-margin accounts this is the spot USDC balance (where the unified collateral lives); for default accounts it is the perps clearinghouse account value.
totalMarginUsedstringNoTotal margin currently in use
totalPositionValuestringNoTotal notional value of all positions
availableBalancestringNoAvailable balance for new positions. Mode-aware: unified/portfolio-margin = spot USDC total minus held (reserved) amount; default = accountValue minus margin in use.
crossMaintenanceMarginUsedstringNoCross-margin maintenance margin used. Liquidation occurs when accountValue approaches this value. Margin health ratio = accountValue / crossMaintenanceMarginUsed (>2 healthy, ~1 = liquidation).
withdrawablestringNoMaximum amount that can be withdrawn without affecting positions. Mode-aware (unified accounts derive this from spot USDC total minus held; default uses the native Hyperliquid perps risk metric).
abstractionstringNoAccount margin mode: 'unifiedAccount' / 'portfolioMargin' share a single USDC balance across spot and perps (collateral reported in spot); 'default' keeps spot and perps separate; 'disabled' behaves like 'default'.
spotUsdcobjectNoSpot USDC balance. For unified/portfolio-margin accounts this is the source of perp collateral: 'total' is the full balance, 'hold' is the portion reserved for open positions/orders.
positionsarrayYesActive perpetual positions
openOrdersarrayYesOpen orders on the book
outcomePositionsarrayNoHIP-4 outcome token positions (prediction market shares)

Examples

json
{ "type": "hyperliquid-get-account", "payload": { "address": "0x0000000000000000000000000000000000000000" }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.