All articles
Strategies·April 15, 2026·6 min read

How Hyperliquid's HLP Vault Actually Backs Perp Liquidity

Hyperliquid HLP vault explained: how it takes the other side of perp trades, socializes PnL pro-rata, and absorbs liquidations on-chain.

Every perp trade on Hyperliquid needs a counterparty, and most of the time that counterparty isn't a person. It's HLP — Hyperliquid's protocol-owned vault, sitting on the book like any other market maker, except its PnL gets split across everyone who deposited into it. If you're building anything that touches Hyperliquid's API — a hyperliquid perps bot, a risk dashboard, a liquidation watcher — you need to understand HLP as infrastructure, not just as a yield product retail deposits into.

What HLP actually is

HLP stands for "Hyperliquid Provider." It's a vault deployed by the protocol itself, not a third-party strategy. Functionally it's two things stitched together: a market maker that quotes resting orders across most listed perps, and a backstop that absorbs liquidated positions when they can't be closed cleanly against existing book liquidity.

This matters because Hyperliquid runs a fully on-chain central limit order book (CLOB) on its own L1, not an AMM and not an off-chain matching engine with on-chain settlement. Every order, cancel, and fill is a transaction processed by validators running HyperBFT consensus. There's no bonding curve absorbing size, no constant-product formula setting price — price discovery happens the same way it does on a CEX, via resting limit orders getting crossed by takers. That means someone has to actually post the other side of the book, all the time, across dozens of pairs, including the illiquid ones nobody wants to make markets on. HLP is the entity contractually (well, protocol-logically) obligated to try.

Depositors send USDC into HLP and receive a claim proportional to their share of vault equity — no separate LP token, it's tracked internally by the vault contract logic. There's a withdrawal lockup (historically 4 days) on new deposits before you can pull funds back out, which exists specifically to stop people from hopping in right before a profitable period and out right before a drawdown.

How it takes the other side

Two distinct flows feed HLP:

  • Passive market making. HLP posts two-sided quotes around the current mark price on most perps, sized and spread according to volatility and existing book depth. When a taker crosses the spread, HLP is filled and now holds inventory it manages algorithmically — hedging, skewing quotes, or unwinding as flow allows.
  • Liquidation absorption. When an account's margin ratio breaches maintenance requirements, Hyperliquid's liquidation engine closes the position. If the book doesn't have enough resting liquidity to absorb the full size at a reasonable price, HLP steps in and takes the position directly, essentially becoming the counterparty of last resort.

The second flow is the one that actually differentiates HLP from a generic market-making bot. A regular MM can walk away from a name that's gotten too volatile. HLP, by protocol design, is the vault everyone expects to still be there when a $4M long on a thin altcoin perp gets liquidated in a single block.

PnL socialization, concretely

Say HLP has $50M in total equity from 3,000 depositors. Over a settlement window it makes $80,000 net — some from spread capture, some from taking over a profitable liquidation, minus whatever it lost eating a bad fill on a volatile pair. That $80,000 isn't distributed as a flat yield; it's added to vault equity, and each depositor's claim grows pro-rata to their existing share.

Worked example: you deposit $10,000 when total vault equity is $50M — you own 0.02% of the vault. A week later equity is $50.4M after fees and PnL. Your claim is now worth $50.4M × 0.0002 = $10,080. No separate "rewards" transaction, no token to claim — your share of the vault contract's tracked equity just moved. The same mechanic runs in reverse on a bad week: if HLP eats a $2M loss absorbing a liquidation during a flash move, every depositor's equity share drops by the same proportion, instantly, with no opt-out. That's the socialization — gains and losses hit the whole pool simultaneously, not just the specific trader whose liquidation triggered the event.

This is structurally similar to how a CLOB-based prediction market spreads counterparty risk versus an oracle-resolved one — worth comparing against how Polymarket's CLOB handles resolution risk differently from UMA's oracle model if you're thinking about vault design generally.

Reading vault state from the API

Builders don't need to guess at HLP's health — Hyperliquid's info API exposes it directly. A vaultDetails request against the info endpoint returns current equity, follower count, and historical PnL:

curl -X POST https://api.hyperliquid.xyz/info \
  -H "Content-Type: application/json" \
  -d '{
    "type": "vaultDetails",
    "vaultAddress": "0x<hlp-vault-address>"
  }'

The response includes a portfolio array with time-bucketed equity and PnL snapshots, plus followers with each depositor's current equity and lockup status. If you're building a trading dashboard that surfaces vault health alongside your own positions, this is the endpoint you poll — not the trade websocket, which only gives you fills, not vault-level equity accounting.

For latency-sensitive tooling, the pattern rhymes with picking a data path for Solana MEV infra — comparing Jito bundles against a direct Yellowstone gRPC feed is the same tradeoff in a different chain: polling a REST endpoint is fine for dashboard-grade freshness, but if your bot's logic depends on HLP's inventory skew to time entries, you want the websocket subscription, not periodic polling.

Gotchas engineers actually hit

  • The lockup is real and enforced on-chain. Don't build a strategy assuming instant HLP withdrawal — model the multi-day delay into any capital allocation logic.
  • HLP's quotes move with its own inventory risk, not just market price. A bot naively assuming HLP always tightens spreads in calm markets will get surprised when HLP is sitting on a large one-sided position and widening to unwind it.
  • Socialized losses mean vault equity can gap down outside of any single trade you can see. If you're modeling expected vault yield for a client, don't extrapolate from a few good weeks — pull the full portfolio history and look at drawdown periods, not just cumulative return.
  • Aggregating liquidity across HLP and independent market makers is nontrivial if you're routing size — the same class of problem as choosing between aggregator paths in Jupiter versus Meteora on Solana, where the "best price" venue changes trade to trade.

If you're deciding whether to build a strategy that deposits into HLP, hedges against it, or competes with it as an independent market maker, that's a design decision worth working through before you write code — our strategy consultation sessions cover exactly this tradeoff. And if you already have a bot or contract touching vault deposits or liquidation flows, get it looked at through a code review and audit before it's holding real capital against HLP's inventory swings.

Building a bot that trades against or alongside HLP's liquidity is a good problem to hand to people who've shipped Hyperliquid perp bots before.

Need a bot like this built?

We design, build and run trading bots on Solana, Hyperliquid and Polymarket.

Start a project
#Hyperliquid#HLP vault#perp trading#market making#on-chain order book