๐Ÿ“– Guides

Hyperliquid Portfolio Margin Setup: Spot and Perps Unified Account (2026)

โš ๏ธ Disclosure: Some links on this page are affiliate links. If you sign up through them, I may earn a commission โ€” at no extra cost to you. I only review tools I actually use.
Hyperliquid portfolio margin unifies spot and perpetual trading for capital efficiency. Under portfolio margin, all cross-margin perp positions and spot balances are margined together within one account, while sub-accounts remain separate. The official documentation describes eligibility, borrowing caps, yield, and liquidation behavior; use the checklist below as the setup reference.

This article contains a Hyperliquid referral link. If you sign up through it, I may receive a commission. The linked account receives a 4% fee discount on the first $25M of volume, excluding Vaults and sub-accounts.

For a broader mechanics overview, see Hyperliquid Portfolio Margin: How It Works (2026). If you are setting up the account itself, see Hyperliquid Setup: Wallet to First Perps Trade (2026).

Eligibility and account value limits

The figures below are from the Hyperliquid Portfolio margin docs section retrieved on 2026-11-11.

The documentation lists these portfolio margin requirements:

The docs also state that all HIP-3 DEXs are included in portfolio margin, though not all HIP-3 DEX collateral assets are borrowable.

Asset caps stated in the docs

AssetCaps stated in the docs
USDT50M USDT global supply cap, 10M USDT global borrow cap, 5M USDT user supply cap, 1M USDT user borrow cap
USDC1B USDC global supply cap, 500M USDC global borrow cap, 250M USDC user supply cap, 50M USDC user borrow cap
HYPE25M HYPE global supply cap, 1M HYPE user supply cap
BTC5k BTC global supply cap, 200 BTC user supply cap
After borrow caps are hit, additional margin used must be supplied by the user using the settlement asset, regardless of whether portfolio margin is active.

Account structure for the unified balance

Portfolio margin is described as a generalization of cross margin. Instead of margining all perp positions within one DEX together, all cross-margin perp positions and spot balances are collectively margined together within one account.

For setup, the practical implications are:

Borrowing, LTV, and yield

Under portfolio margin, eligible collateral assets have a loan-to-value ratio between 0 and 1. The docs list HYPE at an LTV of 0.65 and BTC at an LTV of 0.5.

When placing spot and perp orders under portfolio margin, insufficient balance will be automatically borrowed against eligible collateral up to:

token_balance * borrow_oracle_price * ltv

The price is denominated in the asset being borrowed.

Portfolio margin accounts automatically earn yield on all borrowable assets not actively used for trading. Users can supply eligible quote assets to earn yield. Borrowed assets accrue interest continuously and are indexed hourly to match the perp funding interval. Portfolio margin users pay interest on borrowed assets and earn interest on idle assets according to the same rate.

For stablecoins, the docs state the borrow interest rate as:

0.05 + 4.75 * max(0, utilization - 0.8) APY

where:

๐Ÿ’ก Hyperliquid

Like what you're reading? Try it yourself โ€” this link supports ChartedTrader at no cost to you.

Open a Hyperliquid account with a 4% fee discount on the first $25M of volume, excluding Vaults and sub-accounts. โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime

utilization = total_borrowed_value / total_supplied_value

The rate is compounded continuously depending on the instantaneous value of utilization. Earned interest is accrued proportionally to all suppliers. The protocol retains 10% of borrowed interest as a buffer for future liquidations.

Liquidation monitoring

Liquidations are triggered when the entire portfolio margin account is below its portfolio maintenance margin requirement. Users can monitor this through the portfolio margin ratio. The account becomes liquidatable when:

portfolio_margin_ratio > 0.95

The docs warn that, depending on the order of oracle price updates, either perp positions or spot borrows may be liquidated first. Once the portfolio margin ratio is liquidatable, users should not expect a deterministic liquidation sequence.

Portfolio margin liquidations are taken over directly by the backstop liquidator at system address 0xbbb...b. If user health is below the full liquidation threshold, supplied assets with positive LTV and borrowed assets are fully taken over. If user health is between the partial and full liquidation thresholds, supplied assets with positive LTV and borrowed assets are taken over in 20% intervals, stopping as soon as the user is no longer liquidatable.

Unlike perps, there is no market liquidation phase, because spot books have less consistent liquidity than perps.

Setup checklist

  1. Confirm the master account meets the eligibility threshold: more than $5M in weighted volume or more than $10k in account value.
  2. Keep account value below $25M.
  3. Track the global and user caps for USDT, USDC, HYPE, and BTC.
  4. Understand that insufficient balance can trigger automatic borrowing against eligible collateral.
  5. Monitor the portfolio margin ratio and treat a ratio above 0.95 as liquidatable.
  6. Be prepared to supply settlement asset if borrow caps are hit.
  7. Do not assume a fixed liquidation order between perp positions and spot borrows.

Source and CTA

Primary source: Hyperliquid Docs โ€” Portfolio margin.

Open a Hyperliquid account with a 4% fee discount on the first $25M of volume, excluding Vaults and sub-accounts.

Continue with Hyperliquid

Browse the Hyperliquid guide hub for the complete user journey.

Formula-level checks before relying on the unified balance

The Hyperliquid Portfolio margin docs define the monitored portfolio_margin_ratio as the maximum, across borrowable tokens, of portfolio_maintenance_requirement(token) / portfolio_liquidation_value(token). In practice, the accountโ€™s risk is driven by the token with the highest ratio, not by a single spot or perp balance. The maintenance requirement includes a 20 USDC min_borrow_offset, cross maintenance margin across DEXs, and borrowed size for maintenance priced using the borrow oracle.

The liquidation value is the portfolio balance plus a capped contribution. The inner min selects the lesser of portfolio balance and supply cap; that amount is multiplied by the borrow oracle price and the liquidation threshold. The outer min then caps that product at borrow_cap(token):

portfolio_liquidation_value(token) =
    portfolio_balance(token) + min(
        borrow_cap(token),
        min(portfolio_balance(token), supply_cap(token))
        * borrow_oracle_price(token)
        * liquidation_threshold(token)
    )

The docs set that threshold at 0.5 + 0.5 * LTV(token), so HYPE and BTC do not contribute the same liquidation value even when balances are similar. The borrow oracle price is the median of the spot USDC price, the perp mark price adjusted by the USDT/USDC oracle, and the perp oracle price adjusted by the same oracle.

๐Ÿงฎ Free Hyperliquid calculators

Fee Calculator โ†’
Hyperliquid vs centralized exchange fee comparison
PnL & Liquidation โ†’
Perp PnL + liquidation price
Position Size โ†’
Risk-aware position sizing for HL perps
Hyperliquid

Ready to get started? Use the link below โ€” it helps support ChartedTrader at no cost to you.

Open a Hyperliquid account with a 4% fee discount on the first $25M of volume, excluding Vaults and sub-accounts. โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime
๐Ÿ“ˆ

About the author

I'm a systematic trader running live strategies on IB (USDJPY momentum) and Hyperliquid (crypto perps). Every tool reviewed here is something I've used with real capital. Questions? Reach out.

๐Ÿ“š Related Articles

๐Ÿฆ
Brokers & Exchanges

How to Trade the Magnificent 7 on OKX: Equity Perpetual Swaps Step by Step (2026)

OKX launched 23 equity perpetual swaps on March 24, 2026 โ€” including all Magnificent 7 stocks. This guide walks through every step: finding the contracts, using crypto as collateral, setting leverage, and managing positions 24/7 with Auto Earn yield still running.

March 25, 2026 โฑ 13 min read
๐Ÿ“–
Guides

Hyperliquid Account Value & Unrealized PnL Explained (2026)

Understand how Hyperliquid calculates account value, unrealized PnL, and margin. Learn the exact formulas, funding impacts, and why your balance fluctuates.

July 8, 2026 โฑ 10 min read
โš–๏ธ
Comparisons

Interactive Brokers vs Coinbase vs OKX: Cheapest Bitcoin

We compare Interactive Brokers, Coinbase, and OKX trading fees for Bitcoin in 2026. See which platform actually costs the least after spreads, minimums, and withdrawal costs.

March 28, 2026 โฑ 11 min read