You have probably traded a perpetual future on an exchange where you log in, deposit, and rely on the company behind the screen to keep the books. A perp DEX offers you the same contract with a different machine beneath it. The chart looks familiar. The order ticket looks familiar. The plumbing does not.
This guide explains what makes a perpetual exchange decentralized, piece by piece: where your collateral sits, who matches your order, who decides a liquidation, and where the prices come from. It stays with mechanics. There are no venue rankings, no token talk and no market statistics here.
Key Takeaways
- A perp DEX trades the same perpetual contract as a centralized exchange, but custody, matching and risk rules run as code.
- In a typical design, your collateral sits in a smart contract that acts on your own wallet signature, not in an exchange account.
- On Hyperliquid, margin, funding and the order book follow the logic of centralized exchanges; what changes is who applies the rules.
- A perp DEX still needs outside prices: Hyperliquid's documentation describes its funding oracle as a weighted median of centralized exchange prices.
- Decentralized is not the same as safe, because smart contract, oracle and key risks replace the risk of relying on a company.
The Short Answer: A Perpetual Exchange Run by Code
A perp DEX is a decentralized exchange for perpetual futures. You trade the same contract you would trade on a centralized exchange: no expiry, margin, leverage, funding payments and a liquidation level. What changes is the operator.
On a centralized exchange, a company holds the deposits, runs the matching engine and keeps the books in its own systems. On a perp DEX, those jobs move into software that runs on a blockchain, with rules anyone can read. Same contract, different machine beneath it. You still need to understand the contract. You now also need to understand the machine.
That shift sounds abstract until something goes wrong. Then it decides very practical things: who can move your collateral, who can see your position, and whether the liquidation that closed it followed published steps or an internal decision.
What a Perp DEX Keeps From Centralized Exchanges
Decentralized does not have to mean reinvented. A perp DEX can keep the contract mechanics you already know, and the example below does so on purpose.
Hyperliquid, the venue behind the CarrotFunding terminal, is a useful example, because its documentation says so directly. Its margin computations follow similar formulas to major centralized derivatives exchanges. Its funding is designed to closely match the process used by centralized perpetual exchanges. Its order book works similarly to that of centralized exchanges.
For you, that is good news. Your understanding of initial margin, maintenance margin, funding and order types does not expire when you switch venue. The new part sits beneath the ticket. It shows up in custody, in matching, in the risk engine and in the prices the venue relies on. The next sections take them one at a time.
Where Your Collateral Sits
On a centralized exchange, your deposit leaves your wallet and becomes a balance in the exchange's internal ledger. The exchange holds the keys to the actual funds. Your balance is a claim on the company, and a withdrawal works only if the company processes it.
On a perp DEX, the usual design keeps collateral in a smart contract on the chain the exchange runs on. Your wallet signs each action, from opening a position to withdrawing margin. In that design, nobody at a company signs for you. Your own key does.
That control comes with the full weight of self-custody. Lose the key, and no support desk can restore access. Nobody can. Hyperliquid's own setup guide puts the other half of the risk plainly: anyone with access to your private key or seed phrase can access your funds. Your key is your account. Treat it that way before you treat any venue as safe.
If you want the wider picture of who holds keys and what each model asks you to rely on, our guide to custodial and non-custodial setups walks through the spectrum, from exchange accounts to multisig.
How Your Order Gets Matched
A perp DEX still has to pair your order with someone on the other side. There is more than one way to do that. Some designs run a full order book, some price you against a shared liquidity pool, and some take their price from an external feed.
Our guide to the central limit order book compares all three, so this section stays with the one question that matters for a decentralized venue: who enforces the matching rule.
On a centralized exchange, the operator's matching engine applies the rule, and you see only the result. On a perp DEX with an on-chain book, the matching is part of the chain's state instead of a private process.
Hyperliquid keeps an order book for each asset and matches orders in price-time priority. Nobody negotiates. Every order, fill and liquidation there is recorded on-chain. A public rule is a checkable rule. That is the real gain, and it is narrower than it sounds: a thin book still moves against a large order on any venue, decentralized or not.
The Risk Engine Is Code, Not a Desk
Every leveraged exchange needs a risk engine. It checks margin, decides when a position is liquidated, and covers losses that the collateral cannot. On a centralized exchange, that engine is internal software, and you usually know it only through the exchange's own description of it.
On a perp DEX, the engine is part of the protocol. On Hyperliquid, operations on the perp order books refer to the clearinghouse, because all positions and margin checks are handled there. When an account falls below its maintenance margin, Hyperliquid first sends market orders for the position to the order book, where all users can compete for the liquidation flow. Only if that fails does a backstop liquidation take over through a liquidator vault.
A different design could route every liquidation straight to the operator itself. The trigger might be the same. The path would differ. Published steps make liquidations predictable. On a public engine, you can read in advance in which order the steps happen and who can take the other side.
The engine also has to decide what happens when collateral runs out before a position is closed. Our explainer on auto-deleveraging covers how an insurance fund absorbs that gap, and what happens when the fund is not enough.
The Prices a Perp DEX Cannot Make Alone
A perpetual contract needs a reference price for the asset it tracks. Funding compares the perp's price with that reference. Liquidations need a price that a single trade on a thin book cannot push around. A decentralized exchange cannot take that reference from its own trading alone, because its own book is exactly the market the reference is meant to check.
So a perp DEX usually imports prices through an oracle, a mechanism that brings outside data onto the chain. Hyperliquid shows how far that dependence goes. Its documentation describes the oracle price behind funding as a weighted median of prices on centralized exchanges, and calls it robust because it does not depend on Hyperliquid's own market data at all. Its liquidations use a mark price that combines external exchange prices with the state of its own book.
A decentralized venue leans on centralized prices. Not a flaw. A design choice, with a clear trade-off. An outside reference makes it harder to move liquidations through the venue's own book. It also makes the oracle part of your risk: if the feed is wrong, slow or attacked, the venue acts on a wrong number.
How index and mark prices are built, and what each one protects you from, is the subject of our article on mark price vs index price.
What Changes for You, and What Doesn't
Put side by side, the differences come down to who does each job and who can check it.
| Question | Centralized exchange | Perp DEX |
|---|---|---|
| Who holds the collateral? | The exchange, in its own accounts | A smart contract that acts on your signature |
| Who applies the matching rule? | The operator's internal engine | The protocol, with a public record |
| Who runs liquidations? | The operator's risk engine | Code with published steps |
| What can you check yourself? | What the operator chooses to publish | Orders, fills and positions on a public ledger |
The right-hand column is not a promise of safety. Decentralization swaps one set of risks for another:
- Smart contract risk. A bug in the code that holds collateral can cost money that no company has promised to cover.
- Oracle risk. A wrong or delayed reference price feeds straight into funding and liquidations.
- Key risk. A lost or stolen key cannot be reset by a support desk.
- Visibility. A public ledger is public for everyone, your own positions included.
Leverage, liquidity and your own risk limits work exactly as before. Losses stay losses. A perp DEX does not make a bad position better. It makes the rules around that position easier to read. If you want to see what a public ledger actually shows, our guide to reading a block explorer takes you through an explorer page field by field.
Perp DEX Trading Through CarrotFunding
If you take a challenge with CarrotFunding, a perp DEX is part of your setup, even if you only ever see it through the terminal.
That arrangement decides which parts of this guide apply to you. You trade through the CarrotFunding terminal, and the trading conditions, from the funding rate to the round-the-clock market, reflect the live Hyperliquid environment. The custody question looks different, because on CarrotFunding your only loss is the challenge fee.
The venue details, from leverage limits to trading hours, are on our Hyperliquid venue page. For how the venue itself behaves at the order panel, from leverage caps to its two-stage liquidations, read What Is Hyperliquid?.
Whichever firm you trade with, the venue under the terminal is worth a written answer before you pay.
Conclusion
A perp DEX is less a new product than a new operator. The contract, the margin logic and the funding mechanism stay familiar; custody, matching, liquidations and price inputs move from a company into code. That trade suits you if you value being able to check the rules more than having someone to call. It is a poor trade if you cannot keep a key safe, or if you expect a public engine to be a forgiving one. Before you pick a venue, decide which dependence you would rather carry: on an operator's word, or on code and the outside prices it imports.
FAQ
Is a perp DEX the same as a spot DEX?
No. A spot DEX exchanges the asset itself, and you own what you bought. A perp DEX trades contracts that track an asset, with margin, leverage, funding and a liquidation level attached. You can hold a perp position without ever owning the coin. Our comparison of perpetuals and spot explains what the contract adds. How a DEX is built in the first place, with a liquidity pool or an on-chain order book, is explained in what a DEX is.
Do I need a crypto wallet to trade on a perp DEX?
Usually, because your wallet is what signs your orders and withdrawals. Some venues add other ways in. Hyperliquid's documentation, for example, says you can trade there with a normal DeFi wallet or by logging in with your email address. Whichever route you take, find out who controls the key that signs for your account.
Can other traders see my positions on a perp DEX?
On a venue that records positions on a public ledger, yes. The record is tied to an address rather than a name, but anyone who knows or finds that address can read what it holds, including the size of a position. If that matters to you, factor it in before you open a large position from a single address.
Why does a perp DEX need funding payments at all?
Because a perpetual never expires, nothing forces its price back to the asset it tracks. Funding payments between longs and shorts do that job instead. On Hyperliquid, funding is purely peer-to-peer, and no fees are collected on the payments. Our explainer on funding rates covers how the mechanism works across perp venues.