How Perpetual DEXs Work · Perpetual Contracts · 1/4
What is a Perpetual Contract?
If you've spent any time around crypto markets, you've heard the term "perps." Perpetual contracts — or perpetual futures — are among the most actively traded instruments in crypto. If you plan to list or operate a perp market, you need to understand exactly how they stay tied to the asset they track.
Traditional Futures: A Quick Primer
In traditional finance, a futures contract is an agreement to buy or sell an asset at a specific price on a specific date. For example, a June 2026 BTC future means you're agreeing to buy (or sell) Bitcoin at a set price when June arrives.
Key characteristics of traditional futures:
- Expiry date: The contract settles on a fixed date
- Convergence: As expiry approaches, the futures price converges to the spot price
- Rolling: Traders must "roll" their positions to the next contract before expiry to maintain exposure
This expiry mechanism creates friction. Traders need to manage rollovers, pay spread costs when switching contracts, and deal with liquidity fragmentation across different expiry months.
Perpetual Contracts: No Expiry, Ever
Perpetual contracts solve the expiry problem by simply removing it. A perp has no expiry date — you can hold a position indefinitely. You go long BTC-PERP, and you stay long until you decide to close it (or get liquidated). No rolling, no settlement dates, no contract migrations.
The idea of a perpetual futures contract was proposed by economist Robert Shiller in the early 1990s, and BitMEX popularized it in crypto with its XBTUSD perpetual swap in 2016. Today it is the dominant derivatives instrument in crypto.
The Anchor Problem
But removing expiry creates a new problem: what keeps the perpetual price aligned with the underlying spot price?
With traditional futures, convergence at expiry forces the price to match spot. If a June future is trading at $62,000 but BTC spot is $60,000, arbitrageurs know the gap will close by expiry and trade accordingly.
Without expiry, there's no natural convergence mechanism. The perp price could drift arbitrarily far from spot — unless something forces it back.
Three Prices: Index, Oracle and Mark
Before we get to the anchor itself, note that a perp venue tracks more than one price:
- Index / oracle price: an external reference for the underlying, usually a weighted median of spot prices from several exchanges. On Hyperliquid, validators publish an oracle price for each validator-operated perp roughly every 3 seconds (Oracle docs). For HIP-3 markets, the deployer is responsible for the oracle.
- Mark price: a robust estimate of the fair perp price used for margining and liquidations. On Hyperliquid it is a median of several inputs that combine the oracle with the venue's own order book and external perp prices (Robust price indices).
- Trade price: whatever the order book is printing right now.
If the oracle is wrong or easy to manipulate, everything built on top of it — funding, liquidations, PnL — is wrong too. That is why oracle design is the first responsibility of anyone operating a market.
The Funding Rate: The Invisible Anchor
This is where the funding rate comes in. It's the mechanism that keeps perps tethered to spot, and it's arguably the most important concept in perp markets.
The funding rate is a periodic payment between long and short traders:
- When perp price > spot price (positive funding): Longs pay shorts. This incentivizes traders to short the perp (selling pressure) and disincentivizes going long (cost of holding), pushing the price down toward spot.
- When perp price < spot price (negative funding): Shorts pay longs. This incentivizes traders to go long (buying pressure), pushing the price up toward spot.
Many centralized exchanges settle funding every 8 hours; Hyperliquid and dYdX settle every hour. The rate grows with the premium or discount — the further the perp deviates from the index, the larger the funding payment.
Why Perps Dominate
Several features make perps the preferred instrument:
- Capital efficiency: You post margin rather than the full notional. A 10x long BTC-PERP position gives you 10x the exposure with only 10% of the capital.
- No expiry management: Manage your margin, but no rolling.
- Concentrated liquidity: Because everyone trades the same contract (not fragmented across expiry months), liquidity concentrates in one place.
- Short selling made easy: Going short is as simple as going long — no borrowing of the underlying required.
Perps on DEXs
On centralized exchanges like Binance, perps work within a trusted custodial system. Decentralized perp exchanges bring this same instrument on-chain, adding:
- Self-custody: Margin is held by on-chain logic rather than a company's internal ledger
- Transparency: Positions and liquidations are publicly verifiable — and on Hyperliquid the order book itself is on-chain
- Composability: Other protocols can build on top of perp positions
- Permissionless access: Anyone can interact with the protocol, although individual front-ends may restrict some jurisdictions
The tradeoff has historically been performance — on-chain execution is slower than centralized matching engines. Purpose-built chains have narrowed this gap: Hyperliquid reports a median end-to-end order latency of about 0.2 seconds for co-located clients (HyperCore overview).
In the next lesson, we'll dive deep into funding rates — the mechanism that makes everything work, and one of the main parameters a market operator has to get right.