Portfolio Margin Risk and Liquidations
How Hyperliquid evaluates a whole Portfolio Margin account and why liquidation order can be non-deterministic.
Portfolio Margin liquidations are account level events. The risk engine evaluates eligible collateral, borrowed assets, accrued interest, and cross margin perpetual positions together rather than assigning every leg an independent liquidation price.
That makes Portfolio Margin more capital efficient for offsetting positions and more demanding to monitor.
The risk engine compares value with maintenance requirements
A Portfolio Margin account needs enough liquidation value to support its maintenance obligations. Eligible collateral contributes value after the protocol's risk adjustments, while perpetual positions and borrowing create requirements against that value.
Hyperliquid exposes a portfolio margin ratio that summarizes this relationship. The current specification defines the threshold at which the account becomes liquidatable, but builders and traders should retrieve live parameters rather than treating one article's value as permanent.
The important point is structural. The ratio belongs to the portfolio, not one isolated trade.
Loan to value and liquidation threshold serve different jobs
Loan to value determines how much borrowing capacity an asset can initially support. Liquidation accounting uses a separate threshold so the system has a buffer between opening capacity and the point where collateral is no longer sufficient under stressed conditions.
A trader can therefore be below the maximum borrowing level and still see the account's risk change sharply after collateral prices move or other positions lose money.
HYPE as Collateral in Portfolio Margin shows how collateral specific parameters affect this calculation.
Caps can constrain an otherwise healthy strategy
Portfolio Margin uses global and per user supply and borrow caps. These limits prevent one account or the entire system from assuming unlimited liquidity in an asset.
A strategy can therefore be economically hedged and still run into capacity constraints. If a borrow cap is reached, the account may need additional settlement assets instead of automatically expanding the borrowed leg.
This matters for large accounts because capacity is a market resource, not only a margin calculation.
Liquidation order can vary
Once an account is liquidatable, the sequence of actions can depend on how oracle prices and affected positions evolve. Hyperliquid's documentation warns that users should not assume a perfectly deterministic rule for which spot borrowing or perpetual leg is reduced first.
This creates operational risk for hedged portfolios. If one leg is reduced before its hedge, the account can temporarily become directional during a stressed market.
Risk systems should therefore model liquidation as a sequence of possible state changes rather than one instant account reset.
A hedge can still fail operationally
Suppose an account holds BTC spot and shorts BTC perps. The directional exposure is small under normal conditions. If BTC collateral falls, borrow interest rises, a cap is reached, or one leg is liquidated ahead of the other, the account can still become stressed.
The economic hedge reduces one risk factor. It does not remove collateral risk, liquidity risk, financing risk, oracle risk, or liquidation sequencing risk.
What a serious dashboard should monitor
A Portfolio Margin risk dashboard should track collateral composition, current collateral parameters, outstanding borrowing, utilization, caps, accrued interest, perp maintenance requirements, funding, and the portfolio margin ratio.
One static liquidation price is not enough for a multi asset account.
Continue reading
Read Supply Caps and Borrow Caps for capacity constraints and How HyperEVM Lending Composes With HyperCore Portfolio Margin for the additional risks created when EVM lending positions interact with HyperCore capital.