Skip to main content
Hyperliquid
Streams cross-account balances and margin totals alongside cross and isolated perpetual positions. The initial account snapshot has the same shape as subsequent updates and has no isSnapshot flag.

Subscribe

Response

Isolated Positions

summary.assetPositions also includes nonzero assigned HIP-3 positions with position.leverage.type: "isolated" and a position.isolated object. These positions are separate from the cross-margin totals. There is no top-level isolated-equity aggregate. Isolated rows omit marginUsed; use isolated.supportUsd for posted support. Without a usable mark, they also omit positionValue, unrealizedPnl, returnOnEquity, isolated.markPx, isolated.equityUsd, and isolated.bankruptcyPx, and return liquidationPx: null. returnOnEquity is also omitted when support is not positive. Treat missing derived fields as unavailable, rather than zero. The current isolated projector returns zero placeholders for cumFunding and hasTpsl: false; these do not establish actual cumulative funding or attached protection. Use Market Trading State for scope state and permissions, and Open Orders for working TP/SL orders.

Numeric Fields and Withdrawal Updates

leverage.value and maxLeverage are numbers in both REST and WebSocket positions. borrowApr is a decimal rate ("0.0523" means 5.23%). portfolioMarginRatio is optional; when present, it and crossMarginRatio are decimal ratios. activeHealthMetric selects cross_margin_ratio or portfolio_margin_ratio for account health. Per-balance liability.totalDebt includes margin financing and cash debt; liability.persistedDebt is stored cash debt. Do not combine isolated support with the cross balance or subtract it a second time. Updates may include lastWithdrawalResult with status (completed or failed), transactionId, amount, coin, timestamp, and an optional reason. The initial subscription currently uses pendingWithdrawalsCount: 0; query Pending Withdrawals to establish the initial queue state.

pUSD trading capacity

balances includes a projected pUSD row for eligible Notional collateral accounts even when owned pUSD and debt are both zero. The row’s optional tradingCapacity has the same status, amount, policy, and expiry fields as Asset Balances. available continues to mean free cash, while tradingCapacity.availableToTrade includes credit. Each row’s liability.totalDebt includes projected interest. There is no asset-specific financing object on the summary. Debt and buying power are separate; expire old capacity and recover via HTTP if the stream stalls.