What Is a Perp DEX? Order Books, Vaults, and Who Takes the Other Side
How perp DEXs work, explained through one question: who takes the other side of your trade? Order book venues like dYdX and Hyperliquid vs vault models like GMX, and what each decides for you.
TL;DR
- A perp DEX lets you trade perpetual futures from your own wallet, with code doing the job a centralized exchange's servers used to do behind closed doors.
- Every perp is an open bet, so someone has to take the other side. On a blockchain there are exactly two possible answers: another trader, or a shared vault of LP money.
- Order book perp DEXs like dYdX and Hyperliquid rebuild the trading crowd on a fast lane of their own. Vault venues like GMX replace the crowd with one pot that takes every bet.
- At vault venues, the money question has a blunt answer: the losers are paying. Their lost margin funds both the winners' payouts and the LPs' return.
- "LPing the vault is free money because traders mostly lose" fails in one specific month: when the whole crowd leans the same way and is right, the vault pays everyone at once.
What is a perp DEX?
A perp DEX is a decentralized exchange for perpetual futures: a venue where you trade perps directly from your own wallet, with code rather than a company running the market.
If the instrument itself is new to you, read perpetual futures explained first. The one-line recap: a perp is a bet on an asset's price with no expiry date, kept honest by funding payments that flow between longs and shorts. On a centralized exchange, that bet lives inside a company's servers. The company matches your order against someone else's, holds everyone's margin, and settles the wins, all behind closed doors.
A perp DEX moves the same instrument onto a blockchain, where every step is public and every step costs gas. Same instrument, new building. And before you look at fees, interfaces, or token incentives, there is one question that decides everything else about the building you just walked into: who is on the other side of your trade?
Who is actually on the other side of your trade?
A spot trade hands over the goods and is done. You buy, you receive, the story ends. A perp is different: it is an open bet that has to be settled later, so someone must stand on the other side of it for as long as you hold the position. If you are long, someone is effectively short against you. Your win is their loss.
On a centralized exchange you never asked who that someone was. The venue quietly arranged it. On a chain, where the machinery is public, you can finally see the answer, and it turns out there are exactly two possible ones.
Picture two gambling rooms. In the first room, players form a betting circle and bet against each other. The room itself only referees: it holds the stakes, enforces the rules, and takes a small cut. Your bet exists only if another player agrees to take the other side of it.
In the second room, you sit at a casino table and bet against the house's own bankroll. Any bet, any hour: the house always takes it. Nobody else needs to show up.
Both rooms host the same game. Everything that matters about your experience, your price, your fill, and your risk differs between them. Every perp DEX you will ever meet is one of these two rooms.
How does an order book perp DEX work?
The first room, rebuilt on a chain, looks like this: a public list of real bids and asks, trader betting against trader, with the protocol acting as the referee. The code matches orders, holds both sides' margin, and settles the wins. The name for this shape is an order book perp DEX, and dYdX and Hyperliquid are the working examples people usually point to. That is recognition, not endorsement: they are simply the venues where you can see the shape clearly.
There is one catch, and it explains a design choice that confuses beginners. An order book is a living thing. Market makers update quotes constantly, thousands of times a minute, and every one of those updates is a transaction. A general-purpose blockchain, where every step costs gas, cannot price that kind of chatter. So order book perp DEXs usually run on their own fast lane: a chain or execution layer built specifically for the job. The betting circle brought its own room.
What you get in this room is real price discovery. The price you see is what actual traders are bidding and asking right now, not a number imported from somewhere else. What it costs you is dependence on the crowd. Your trade needs a taker. If the crowd is thin, your size waits, or it moves the price against you. Thin crowd, thin market.
How does a vault-based perp DEX work?
The second room needs no crowd at all. Liquidity providers deposit funds into one shared vault, and every trader on the venue bets against that vault. You win, the vault pays you. You lose, the vault keeps your margin. The name for this shape is pool as counterparty, and GMX is the model most people learn it from.
If you have read how AMMs work, the move should feel familiar. DeFi's signature trick is replacing a crowd of counterparties with one shared pool. The AMM did it for spot trading; the vault does it for perps. But there is a sharper edge here. An AMM pool does not care whether your trade was a good idea. A perp vault does, because it is the direct counterparty to your bet. When you win, the vault loses.
So who is paying at a vault venue? The losers. Their lost margin is the vault's income, and that income funds two things at once: the winners' payouts and the LPs' return. The vault is, in the bluntest accounting, the sum of its gamblers' mistakes minus its payouts, plus the fees every bet pays along the way.
Run a month through the vault both ways and the business model becomes obvious. In a month where traders mostly lose, their margin stays in the pot: the vault grows, the LPs' share grows with it, and fees land on top. In a month where traders mostly win, the vault pays winner after winner out of the LPs' money: the pot shrinks, and fees soften the bleed without stopping it. The house can lose. Hold that thought, because it comes back at the end.
What does the venue model decide for you as a trader?
One choice, who takes the bet, decides three things about every trade you place. It is worth saying each one out loud.
Counterparty. In the circle, another trader took your bet, and their solvency is the referee's problem: the protocol held both sides' margin up front. At the table, your counterparty is the vault itself, which means your win is only as good as the vault's balance sheet on the day you collect.
Pricing. In the circle, the price is the crowd's own bids and asks. That is real discovery, and it exists only where the crowd stands. At the table, an oracle reports the wider market's price from outside, and the vault fills you at it. No crowd needed, and no discovery either. The venue's health now depends on that oracle telling the truth.
Availability. In the circle, no taker means no trade. At the table, every bet is taken instantly, at any hour. The cost of that certainty is naming the vault and its oracle as your counterparty.
Here is the situation that makes this concrete. The same perp, the same minute, two venues: the order book DEX quotes you a worse price than the vault venue's oracle fill. A beginner calls one of them a ripoff. You can do better, because neither number is a lie. The book's worse quote is a real crowd you can actually trade against, at a price that crowd discovered. The vault's better quote is a guaranteed fill whose counterparty is the vault and its price feed. They are selling different certainties. The only question is which certainty you are buying, and now you can name it.
Is providing liquidity to a perp vault free money?
You will hear this pitch, and it is worth dismantling properly: traders mostly lose, the vault takes the other side of every trader, therefore LPing the vault is free money. The house always wins, right?
A real casino wins because it spreads many uncorrelated bets and holds a fixed mathematical edge on each one. Roulette does not have opinions. A perp vault holds one crowd's correlated bets with no fixed edge at all. When the market pumps and the whole crowd leans long, every bet wins together, and the bankroll pays them all at once, out of the LPs' pot. The house metaphor breaks exactly here.
Notice also what the pitch's premise actually is. "Traders mostly lose" is a popular claim about averages, not a law about any particular month. Averages do not save a bankroll from a one-sided month. What the vault LP is really selling is insurance against the crowd being right, and crowds are sometimes right. That risk is precisely what the return pays for. In DeFi, whenever a return exists, it is paying for something; your job is to find what, before you supply the capital. The people running hedged versions of this trade, and the trade-offs they accept to do it, are covered in DeFi strategies explained simply.
None of this makes vault LPing a scam. It makes it a priced risk, which is a different thing, and the difference is the entire skill.
How do you read any derivatives venue cold?
Everything above compresses into a single reading habit. When you meet a new derivatives venue, on any chain, ask: who is on the other side?
If the answer is a crowd of traders, check the crowd's depth, because your fills and your exits live and die by it. If the answer is a vault of LP money, check the vault's balance sheet and the oracle it prices by, because those two things are now your counterparty. Options venues, by the way, come in the same two shapes, just with a thinner and earlier market than perps. The question sorts them too.
This is literacy, not trading advice: the point is to know which room you are standing in before you put a single unit of margin on the table. If you want to build that instinct hands-on rather than from prose, this article is drawn from a checkpoint of Your First 90 Days in DeFi, our free interactive course. The first three checkpoints need no account, and the derivatives checkpoint makes you run the vault's good month and bad month yourself.
Related questions
Is a perp DEX safer than a centralized exchange? It swaps one risk set for another. A centralized exchange carries custody and company risk: the venue holds your funds and can fail or freeze you. A perp DEX removes the custodian but adds smart contract risk, oracle risk, and, on vault venues, vault solvency risk. On-chain the risks are at least public and inspectable, which is an advantage only if you inspect them.
What is the difference between dYdX, Hyperliquid, and GMX? dYdX and Hyperliquid are order book perp DEXs: traders bet against each other, and the protocol referees, typically on infrastructure built for fast order matching. GMX is the pool-as-counterparty model: LPs fill a shared vault, and every trader's bet settles against it.
Do perp DEXs have funding rates? Yes. The perp mechanism does not change when the venue moves on-chain: funding payments still flow between longs and shorts to keep the perp's price tethered to the spot price. The mechanics are covered in perpetual futures explained.
Can a perp DEX vault go broke? The vault pays winners out of LP deposits, so a long one-sided stretch where the crowd keeps winning drains it. Venues add limits and fees to slow that down, but the possibility is structural. It is the risk LPs are being paid to carry.
Why do order book perp DEXs run on their own chains? An order book needs constant, cheap quote updates from market makers, thousands per minute. On a general-purpose chain, every update is a gas-paying transaction, which makes that chatter unaffordable. So order book venues build or rent a fast lane dedicated to the job.
Where to go next
A perp DEX is not one thing. It is one of two rooms: a betting circle where traders take each other's bets and the code referees, or a casino table where a vault of LP money takes every bet at an oracle's price. One question, who is on the other side, tells you which room you are in, what your counterparty risk is, and what the venue can honestly promise you.
If you skipped the primer, read perpetual futures explained for the instrument itself, how AMMs work for DeFi's original pool-replaces-crowd trick, and DeFi strategies explained simply for how professionals actually use these venues. Or learn it the hands-on way in Your First 90 Days in DeFi below: it is free, and you can start without an account.
Tagged