Advanced level
A perpetual future is a futures contract with no expiry. Instead of converging to spot on a settlement date, it is pulled toward an index price by funding: a periodic payment between longs and shorts, set by the premium of the contract over the index plus a small clamped interest term. Positions are margined and liquidated against a smoothed mark price rather than the last trade, and when a liquidation leaves a deficit, an insurance fund, a backstop vault or auto deleveraging absorbs it.
Last, index and mark: three prices on one screen
A perpetual (a perp) is a futures contract that never expires. A dated future is tied to spot because on its settlement date it becomes spot. A perp has no such date, so the venue needs two extra prices to keep it honest, and every serious perp screen shows all three.
| Price | What it is | What it drives |
|---|---|---|
| Last price | The most recent trade on this venue’s own order book. | Your fills, the candle chart, stop orders set to trigger on last |
| Index price | A composite of spot prices from several exchanges: a weighted average on Binance, a weighted median of centralized exchange prices on Hyperliquid, where validators publish it about every three seconds. | The target the contract is tethered to, and the reference for the funding premium |
| Mark price | A smoothed fair value built from the index and the contract’s own market. | Unrealized PnL, margin checks, liquidations, and on some venues take profit and stop loss triggers |
The mark price is where the design choices live. Binance takes the median of the index adjusted for pending funding, the index plus a moving average of the basis, and the contract’s own price. Hyperliquid takes the median of three inputs: the oracle plus a 150 second moving average of its own premium over the oracle; the median of its best bid, best ask and last trade; and a median of perp prices on large centralized exchanges.
A median of several inputs means one thin print cannot move it, so a single wick or spoof on one venue does not wipe out positions. The flip side: you can be liquidated while the last price on your chart never touched your level, and survive a wick that went straight through it. How far a venue can trust its inputs is a question about oracles.
Funding: the tether that replaces expiry
When the perp trades above the index, longs pay shorts. When it trades below, shorts pay longs. The payment makes the crowded side more expensive to hold and pays anyone willing to take the other side, which pulls the contract back toward the index. As Binance puts it, funding is transferred directly between traders holding opposing positions, and it charges no fee on it. You only pay or receive if you hold a position at the funding timestamp.
The standard formula, used with small variations by Binance, Bybit, Hyperliquid and others, has two parts:
The premium index measures how far the contract trades from the index, using the price a meaningful order would actually get rather than the top of the book:
On Binance that fixed notional, the impact margin notional, is 200 USDT divided by the initial margin rate at maximum leverage: 4,000 USDT for a contract with 20x maximum leverage. dYdX uses 500 USDC divided by the initial margin fraction. Sizing it this way makes the premium expensive to fake with a few small orders.
The interest component represents the difference between borrowing dollars and borrowing the coin. On Binance it is fixed at 0.03% a day, which is 0.01% per 8 hour interval, for most symbols. The clamp then does something subtle: whenever the premium sits within 0.05% of the interest rate, the two cancel and funding is exactly the interest rate. That is why 0.0100% is the most common number you will ever see on a funding screen.
| Average premium P | I − P | After the clamp | Funding per 8h | Annualized (×1,095) |
|---|---|---|---|---|
| +0.030% | −0.020% | −0.020% | 0.0100% | 10.95% |
| −0.020% | +0.030% | +0.030% | 0.0100% | 10.95% |
| +0.150% | −0.140% | −0.050% | 0.1000% | 109.50% |
| −0.100% | +0.110% | +0.050% | −0.0500% | −54.75% |
The payment is position notional times the rate, with notional valued at mark on Binance and at the spot oracle price on Hyperliquid. The third row is what happens with an index of 60,000, an impact bid of 60,090 and an impact ask of 60,110: a 0.15% premium becomes 0.10% funding, and a 60,000 dollar long pays 60 dollars for the interval. Every venue also caps the rate. Binance sets the cap and floor at 0.75 times the maintenance margin ratio, Hyperliquid caps funding at 4% an hour, and dYdX caps the 8 hour rate at 600% of the gap between initial and maintenance margin.
Funding intervals differ by venue
The formula looks alike everywhere, but the clock does not. The details below are as of September 2026. Comparing a raw funding number across venues without normalizing the interval is the most common mistake in reading funding data.
| Venue | Interval | Interest term | Detail worth knowing |
|---|---|---|---|
| Binance USD margined | Every 8 hours at 00:00, 08:00 and 16:00 UTC by default; can move to 4 hours or 1 hour in extreme volatility | 0.01% per 8 hours for most symbols | Notional valued at mark |
| Bybit | Set per contract, 8 hours in its own examples; switches to hourly settlement when funding hits its upper or lower limit | 0.03% a day divided across the intervals; 0% for some pairs | Premium average weighted toward the end of the interval (Binance weights the same way) |
| Hyperliquid | Every hour, paying one eighth of the computed 8 hour rate | 0.01% per 8 hours, so 0.00125% an hour | Premium sampled every 5 seconds; notional valued at the oracle price |
| dYdX | Every hour | 0% on cross markets; 0.125 basis points an hour on isolated markets, set by governance | Premium samples come from block proposers each minute |
To compare, convert everything to one interval and then to a yearly rate:
An hourly 0.0013% is about 0.0104% per 8 hours, the same as Binance at 0.0100%. An hourly 0.01% is 87.6% a year. Reading derivatives data covers what those levels say about positioning.
Initial margin, maintenance margin, cross and isolated
Initial margin is what you post to open: notional divided by leverage. Maintenance margin is the floor your equity must stay above; cross it and the liquidation engine takes over. On Hyperliquid, maintenance is half the initial margin at the market’s maximum leverage, so a market with 40x maximum leverage (2.5% initial) has a 1.25% maintenance rate, and across its markets the rate runs from 1.25% to 16.7%. Centralized exchanges use tiers instead: the maintenance rate climbs as the position grows, because a larger position is harder to close without moving the book.
Cross margin
One pool of collateral for every position
- A losing position can draw on the whole balance, so it survives larger moves
- Gains on one position support another
- A single bad position can take the entire account with it
- Your liquidation price depends on everything else you hold
Isolated margin
Collateral ring fenced per position
- The most you can lose is the margin you assigned
- Liquidation price is easy to compute and does not drift with other positions
- Liquidated sooner, because only that margin stands behind the position
- Funding and fees come out of that margin and move the liquidation price
For an isolated position, set equity equal to the maintenance requirement and solve for price:
Take a 1 BTC long at 60,000 with 10x isolated leverage, so 6,000 dollars of margin, and m = 1.25%. The liquidation price is 54,683.54, a fall of 8.86%, not 10%. At 54,000 the equity would be exactly zero: that is the bankruptcy price. The 683.54 dollars between the two is the maintenance margin at that price, and it exists to pay for closing your position in a falling market without anyone else taking the loss. The same trade as a short liquidates at 65,185.19, 8.64% above entry.
# Isolated margin liquidation price, before fees and funding.
# side = +1 for a long, -1 for a short. m is the maintenance margin rate.
def liq_price(entry, leverage, m, side=+1):
return entry * (1 - side / leverage) / (1 - side * m)
liq_price(60_000, 10, 0.0125, +1) # 54,683.54 (long, 8.86% below entry)
liq_price(60_000, 10, 0.0125, -1) # 65,185.19 (short, 8.64% above entry)Liquidation, insurance funds and auto deleveraging
A liquidation is a sequence of backstops, each one used only when the one before it runs out. The details below are Hyperliquid’s, because its documentation is public and specific; centralized venues follow the same shape with an insurance fund in the middle.
The mark price pushes equity below maintenance
Nothing has been sold yet, and there is rarely any warning beyond the margin ratio creeping up.
The engine closes into the book
Hyperliquid first sends market orders to its own order book. Positions above 100,000 USDC are closed 20% at a time, with a 30 second cooldown between orders. If the closes restore the maintenance requirement, any remaining collateral stays with the trader.
A backstop takes the position
If equity falls below two thirds of maintenance before the book can absorb it, a backstop liquidation hands the position to the liquidator vault and the maintenance margin is not returned. HLP, a community funded protocol vault that also makes markets, performs these liquidations. Centralized exchanges use an insurance fund instead: it keeps what is left when a liquidation fills above the bankruptcy price and pays the shortfall when one fills below it.
Auto deleveraging, the last resort
If an account or isolated position goes negative and the backstops cannot cover it, the venue closes profitable positions on the other side. Hyperliquid ranks them by (mark price ÷ entry price) × (notional ÷ account value), so the most profitable and most leveraged go first, and closes them at the previous mark price against the underwater account.
October 10, 2025 showed the whole stack under load. After a US tariff announcement, more than 19 billion dollars of leveraged positions were liquidated within 24 hours, and total perp open interest fell from about 217 billion to 123 billion dollars, according to CoinDesk research; Hyperliquid’s open interest fell 57%. An academic analysis of auto deleveraging counted about 2.1 billion dollars of Hyperliquid positions closed by ADL in 12 minutes that day.
Onchain perps: order books versus oracle pools
Onchain perpetuals come in two families, and the difference is who stands on the other side of your trade.
Order book venues
Hyperliquid keeps an order book for every asset in its own chain state, matched in price time priority, with margin checked when an order is placed and again when it fills. dYdX runs as its own proof of stake chain built on the Cosmos SDK, where validators hold the order book in memory, off chain and outside consensus, and put matched trades into blocks. In both, your counterparty is another trader or a market maker, as on a centralized exchange. See order books, RFQ, intents and solvers for how books match.
Oracle priced pools
GMX takes the opposite approach. There is no book: every order is routed against liquidity pools and quoted at an oracle index price from Chainlink Data Streams. The pool’s liquidity providers are the counterparty to every trader: they earn a share of the fees and lose when traders win. Instead of premium based funding, GMX v2 uses adaptive funding that rises while one side dominates open interest, a borrowing fee on the larger side, and a price impact charge that rewards balancing the pool. Positions close automatically once collateral net of losses and fees falls below 0.4% to 1% of size, depending on the market, and ADL closes profitable positions if pending profits threaten the pool.
| Order book (Hyperliquid, dYdX) | Oracle pool (GMX) | |
|---|---|---|
| Your counterparty | Other traders and market makers | The pool’s liquidity providers |
| Price you trade at | The book, with its depth and spread | The oracle price plus a price impact charge |
| Funding set by | Premium of the book over the index | Imbalance between long and short open interest |
| Characteristic failure | Thin books on small markets, so liquidations slip and prices can be pushed | Oracle latency or manipulation, and bugs in the pool’s accounting |
The pool design makes the pool’s own accounting part of the attack surface. On July 9, 2025, GMX v1 on Arbitrum lost about 42 million dollars to a reentrancy bug: the list of short positions was updated but the global average short price was not, which inflated the value of the GLP pool token so the attacker could redeem it for more than it was worth. The attacker returned about 40.5 million dollars after a bounty offer.
A position from open to close
Put the pieces together on one illustrative trade: a 1 BTC isolated long at 60,000 with 10x leverage, a 1.25% maintenance rate and a taker fee of 0.05% each way. Funding is charged on the entry notional for simplicity; real venues use mark or oracle notional at each interval.
| Moment | Number | Where it comes from |
|---|---|---|
| Open | 6,000 margin, 30 fee | 60,000 ÷ 10; 60,000 × 0.05% |
| Liquidation price at open | 54,683.54 (−8.86%) | The formula above |
| 30 days flat, funding 0.01% per 8h | 540 paid, liquidation now 55,230.38 (−7.95%) | 90 intervals × 0.01% × 60,000, taken from isolated margin |
| 30 days flat, funding 0.05% per 8h | 2,700 paid, liquidation now 57,417.72 (−4.30%) | Crowded long funding eats almost half the margin |
| Close at 63,000 after 3 days | +3,000 gross, 61.50 fees, 54 funding, 2,884.50 net | 48.1% on the 6,000 margin |
The fourth row is the one people forget. The price never moved, yet a 4.3% dip now liquidates the position instead of an 8.9% one, because isolated margin pays the funding. You can run this experiment, with funding charged every bar, in the trading simulator, which offers spot, perpetuals and dated futures with play money.
Five checks before you open a perp
Find the mark price recipe
Which inputs, which venues, what smoothing. That is the price that liquidates you, and on a thin market it is only as good as its index.
Compute your own liquidation price
Use the formula with the venue’s real maintenance tier, then subtract a few weeks of funding at a pessimistic rate. The liquidation calculator and position size calculator help.
Normalize the funding rate
Convert to the same interval and annualize before comparing venues or deciding whether a carry is worth holding.
Choose cross or isolated deliberately
Isolated for a trade you are prepared to lose outright, cross only when you are watching the whole account.
Read the backstop rules
Insurance fund size, backstop vault, ADL ranking. They decide what happens to you when someone else’s position fails.
The risk management page covers sizing so that a liquidation is an event you planned for. Primary sources worth reading in full: Binance funding rates, Hyperliquid funding, Hyperliquid liquidations and the GMX documentation.
Common questions
Why does my liquidation price move while the position is open?
In isolated margin, funding payments and fees are taken from the margin behind the position, so every payment moves the liquidation price closer. In cross margin it moves with the value of everything else in the account. Adding margin moves it away again.
Can I be liquidated if the last price never reached my liquidation price?
Yes. Liquidation is triggered by the mark price, which is built from the index and a smoothed view of the contract. If the index falls on other venues while your venue's last price holds up, mark can cross your level without a trade ever printing there. The reverse is also true: a wick on one venue often does not liquidate anyone.
Why is funding 0.01% so often?
Because of the clamp. On Binance style formulas, whenever the premium is within 0.05% of the interest rate, the two cancel and the funding rate equals the interest rate, 0.01% per 8 hours. That is about 10.95% a year paid by longs to shorts, so a "neutral" market still charges longs.
Does the exchange keep the funding payments?
On order book venues, no. Funding moves between traders holding opposing positions, and Binance states it charges no fee on it. Pool based designs differ: on GMX, funding moves between longs and shorts while a separate borrowing fee goes to the pool that acts as counterparty.
What is the difference between an insurance fund and auto deleveraging?
An insurance fund absorbs the loss when a liquidation fills worse than the bankruptcy price, funded by what is left over from liquidations that fill better. Auto deleveraging is what happens when that buffer is not enough: the venue closes profitable positions on the other side to cover the deficit.
Are onchain perps safer than centralized ones?
They trade one set of risks for another. You keep custody until you deposit and can verify positions onchain, but you take on smart contract, oracle and chain level risks, and on pool designs your counterparty is a pool whose accounting can be attacked. Judge each venue by its failure modes, not its label.
Where to go next
Next: Crypto options and the Greeks
Guide 6 of 16 in the Advanced level. Your place is kept on this device, so you can pick up exactly here next time.