AMM-priced perpetuals
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 becomes the index
Section titled “The pool price becomes the index”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.
Margin is strict isolated
Section titled “Margin is strict isolated”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.
What the two rules protect
Section titled “What the two rules protect”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.
How far a pool move reaches
Section titled “How far a pool move reaches”- 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.
The numbers
Section titled “The numbers”| 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.
Trading an AMM-priced perp
Section titled “Trading an AMM-priced perp”- 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.
Managing isolated margin from code
Section titled “Managing isolated margin from code”{ "type": "updateIsolatedMargin", "asset": 34, "isBuy": true, "ntli": 5000000 }{ "type": "topUpIsolatedOnlyMargin", "asset": 34, "leverage": "2" }- Read
marginMode, not the deprecatedonlyIsolated(true for bothstrictIsolatedandnoCross). - Open with
updateLeverageandisCross: false. - Top up with
updateIsolatedMargin(ntlihas 6 decimals: 5000000 is 5 USD) or target a leverage withtopUpIsolatedOnlyMargin. Asset id 34 was RLB’s position in the mainnetmetauniverse 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.
What the docs leave open
Section titled “What the docs leave open”- One pool, now delisted: the docs list a single pool, for RLB, which mainnet
metashows 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.