Skip to content
TradePerpetuals9 pages
What a perpetual future isFoundationA perpetual future is a contract on an asset's price that never expires, kept close to that price by an hourly payment between longs and shorts.Contract specificationsPractitionerEvery Hyperliquid perp is a linear contract on 1 unit of its asset, defined by size decimals, maximum leverage, a margin table and a margin mode.FundingPractitionerFunding is an hourly payment between longs and shorts, set by how far the perp trades from the oracle price, that ties a contract with no expiry to its index.Margin: cross, isolated and margin tiersPractitionerMargin is the collateral behind a perp: initial margin to open, maintenance margin to stay open, shared in cross mode or ring-fenced in isolated mode.Leverage and liquidationPractitionerBelow maintenance margin, positions go to the order book as market orders; below two thirds of it, the liquidator vault takes them over.Auto-deleveragingExpertWhen an account goes below zero, auto-deleveraging closes the most profitable, most leveraged opposing positions at the previous mark price, leaving no bad debt.Hyperps and index perpetualsPractitionerHyperps fund against a moving average of their own mark price until spot trading exists; index perps track a formula the validators publish.AMM-priced perpetualsExpertSome perps price off a Uniswap V2 or V3 pool instead of exchange spot prices, and are isolated only, with margin locked in until the position closes.DelistingPractitionerWhen validators vote to delist a perp, positions settle at the 1-hour time-weighted oracle price before the vote and no new orders are accepted.

AMM-priced perpetuals

Expert

Some perps price off a Uniswap V2 or V3 pool instead of exchange spot prices, and are isolated only, with margin locked in until the position closes.

An AMM-priced perp takes its index from one on-chain automated market maker (AMM) pool. The standard oracle price is a weighted median of spot prices from several large exchanges, combined across validators by stake. For you, the pool comes with the strictest margin mode, and funding that follows it.

The pool price, converted to USDT (table), is the underlying spot price. From there the normal machinery runs: the oracle feeds funding and the mark is the usual median.

AMM-priced perps are strict isolated (margin): no cross margin, and margin leaves an open position only in proportion as it closes, partly or fully. Adding margin is allowed. Say you open with 1,000 USDC of margin: you can add more but withdraw none, and closing half the position releases 500.

The docs state the rules, not the reasons; the effects follow from margining:

  • Isolation contains a bad print. An isolated liquidation, backstop included, takes only that position and its margin (liquidation), so a distorted pool cannot drain a cross account or liquidate unrelated positions.
  • No removal keeps paper profit in the position. Ordinary isolated unrealised PnL can be withdrawn above the transfer requirement; here it leaves only by closing on the book, so a gain from a pushed pool cannot be withdrawn while it is pushed.
  • Funding reacts directly. A pool pushed above the perp’s trading price turns the premium negative, and shorts pay longs while the push holds.
  • The mark is damped. It is the median of: the oracle plus a 150-second moving average of the gap between Hyperliquid’s mid and the oracle; the median of best bid, best ask and last trade; and a weighted median of other exchanges’ perp mids (oracles and mark prices). With no other exchange’s perp, the docs substitute a 30-second moving average of the book median, so two inputs come from Hyperliquid’s own book and a pool move the book does not follow barely shifts the median.
Item Value
Price source Uniswap V2 or V3 pool price
Conversion to USDT at robust exchange oracle prices
Cross margin not allowed
Margin removal from an open position not allowed; margin returns as the position closes
Adding margin allowed
marginMode in meta "strictIsolated" (onlyIsolated: true, deprecated)
Pool listed in the docs RLB: 0x510100d5143e011db24e2aa38abe85d73d5b2177
RLB in mainnet meta, 28 September 2026 isDelisted: true, marginMode: "strictIsolated", maxLeverage: 3, szDecimals: 0
Isolated-only entries on the validator-operated dex, same read 8, all delisted

The last two rows are a measurement: every isolated-only asset on the validator-operated dex was delisted at the read, so no AMM-priced perp was open for trading there that day.

  • Pick leverage before you open: you can add margin but not remove it, and isolated leverage sets the liquidation price.
  • Watch funding when the pool moves: a push becomes funding at the next hourly payment, even while the mark barely moves.
{ "type": "updateIsolatedMargin", "asset": 34, "isBuy": true, "ntli": 5000000 }
{ "type": "topUpIsolatedOnlyMargin", "asset": 34, "leverage": "2" }
  • Read marginMode, not the deprecated onlyIsolated (true for both strictIsolated and noCross).
  • Open with updateLeverage and isCross: false.
  • Top up with updateIsolatedMargin (ntli has 6 decimals: 5000000 is 5 USD) or target a leverage with topUpIsolatedOnlyMargin. Asset id 34 was RLB’s position in the mainnet meta universe at the read; it is delisted, so orders on it are refused.
  • The docs do not say how validators sample the pool (which block, spot or averaged, which chain), so an off-chain reproduction is an approximation.

A HIP-3 deployer publishes its own oracle, so it can build an AMM-priced perp with marginMode: "strictIsolated" in registerAsset2, or later setMarginModes, within the feed clamps and cross-margin eligibility rules in operating a perp dex.

  • One pool, now delisted: the docs list a single pool, for RLB, which mainnet meta shows delisted.
  • V2 or V3 per asset is not stated.
  • HIP-3 backstop: the per-dex backstop accepts only cross-enabled assets, so a deployer’s strict isolated AMM-priced perp goes from market liquidation straight to auto-deleveraging, on the docs’ description.

For other perps with no exchange spot market, see Hyperps and index perpetuals. For deployer margin modes and oracle limits, see Operating a perp dex.