Quick answer

A perpetual DEX is a decentralized exchange where you trade perpetual futures, derivative contracts that follow an asset's price, never expire and can be opened with leverage, directly from a self-custody wallet. Instead of buying the coin itself, you deposit collateral (often a stablecoin) and open a long or short position whose profit or loss depends on how the price moves.

The perp DEX replaces the exchange operator with smart contracts or a dedicated blockchain that holds margin, tracks positions, charges funding and liquidates accounts that run out of collateral. Price stays anchored to the spot market through funding payments and oracle price feeds.

Perpetual futures in plain terms

A traditional futures contract has a settlement date. On that date it expires and is settled at the market price, so its price naturally converges with spot as expiry approaches. Perpetual futures remove the expiry. You can hold a position for minutes or months, as long as your margin covers losses and fees.

Four ideas define every perpetual position:

  • Direction. A long profits if the price rises, a short profits if it falls. Shorting is as simple as going long, which is one reason perps are popular.

  • Margin. The collateral you post. Initial margin opens the position; maintenance margin is the minimum you must keep before liquidation.

  • Leverage. Position size divided by margin. With 5x leverage, 1,000 USDC of margin controls a 5,000 USDC position.

  • Funding. Periodic payments between longs and shorts that pull the contract price toward the underlying index.

Because nothing ever expires, funding is what replaces the natural convergence of dated futures. Without it, a perpetual contract could drift far away from the asset it is supposed to track.

How a perpetual DEX differs from a centralized exchange

On a centralized derivatives exchange you deposit funds into an account controlled by the platform, which runs the matching engine, the risk engine and the liquidation process internally. On a perpetual DEX those functions are handled by publicly visible code, and you usually connect a wallet rather than create an account.

That changes several things. Positions, collateral and liquidations are verifiable on-chain. Withdrawals do not depend on a company's approval queue. At the same time, there is no support desk that can reverse a mistaken transaction, and the safety of your margin depends on the quality of the contracts and the oracles. The broader tradeoffs are covered in our comparison of DEX vs CEX.

Main designs of decentralized perps

Not every perp DEX works the same way. Most fall into one of three models, and the model determines who your counterparty is and where the price comes from.

On-chain order book

Buyers and sellers place limit and market orders in an order book, just like on a centralized venue. Because order books need very fast, cheap updates, these exchanges often run on their own application-specific chain or a high-throughput network. Your counterparty is another trader or a market maker. Hyperliquid is a well-known example of this approach.

Oracle-priced liquidity pool

Traders open positions against a shared pool of assets supplied by liquidity providers. Entry and exit prices come from external price feeds rather than an order book. When traders lose, the pool gains, and when traders win, the pool pays. Liquidity providers earn fees but take the opposite side of aggregate trader positions. The quality of the price feed is critical here, which is why it helps to understand how blockchain oracles work.

Hybrid models

Some platforms match orders off-chain for speed and settle trades and balances on-chain. Others combine a virtual AMM curve with oracle checks. Hybrids aim for centralized-exchange speed with on-chain custody, but they introduce extra components, such as an off-chain operator, that you need to trust for availability.

Funding rate histogram flipping between positive and negative bars beside a balance scale and a clock, showing periodic payments between longs and shorts

Funding rates and mark price

The funding rate is the mechanism that keeps a perpetual contract close to the index price of the underlying asset. It is calculated from the gap between the contract price and the index, and it is paid at regular intervals, often every hour or every eight hours depending on the venue.

  • Positive funding means the perp trades above the index. Longs pay shorts, which makes holding longs more expensive and encourages shorts.

  • Negative funding means the perp trades below the index. Shorts pay longs.

Funding is paid between traders, not to the exchange. For short-term trades it is often small, but for a leveraged position held for weeks it can add up to a meaningful cost or income.

The mark price is a separate reference, usually derived from oracle index prices, that the protocol uses to value open positions and decide liquidations. Using a mark price instead of the last traded price protects traders from being liquidated by a single thin trade or a brief wick on one venue.

Liquidations: a worked example

Here is a simplified example with hypothetical numbers. Fees and funding are ignored to keep the math clear.

  1. You deposit 1,000 USDC and open a 5x long on a token priced at 100. Your position is worth 5,000 USDC, or 50 tokens.

  2. If the price rises 10% to 110, the position is worth 5,500 USDC. Your profit is 500 USDC, a 50% gain on margin.

  3. If the price instead falls 10% to 90, you lose 500 USDC, half your margin.

  4. Suppose maintenance margin is 3% of position value. As losses approach the point where your remaining equity drops below that threshold, the protocol liquidates the position. In this example that happens after a fall of roughly 17% from entry, well before the price reaches zero.

Liquidations are usually carried out by keepers or a liquidation engine that close the position and may charge a penalty. Many perp DEXs keep an insurance fund to absorb losses when a position cannot be closed before its margin is gone. If that fund is exhausted, some protocols use auto-deleveraging, which reduces profitable opposite positions. Read the documentation to see which backstops a platform uses.

Risks of leverage trading on-chain

Leverage trading is risky on any venue. On-chain derivatives add a few specific layers:

  • Smart contract risk. A bug in margin, pricing or liquidation logic can cause losses that have nothing to do with your trade.

  • Oracle risk. A stale, delayed or manipulated price feed can trigger unfair liquidations or let attackers drain a pool.

  • Liquidity risk. Thin order books or capped pool sizes mean large orders move the price, and exits can be expensive in a fast market.

  • Operator and chain risk. Hybrid designs depend on off-chain services, and app-chains depend on their own validator sets staying live.

  • Bridge risk. If you must bridge collateral to a separate chain, the bridge becomes another point of failure.

Crypto prices are volatile, and leverage turns ordinary moves into account-ending moves. Treat any leveraged position with care and do your own research.

Checklist before you use a perp DEX

  • Identify the design: order book, pool or hybrid, and who takes the other side of your trade.

  • Check which oracles provide index and mark prices, and how often they update.

  • Read the funding formula, the interval and the maintenance margin requirements.

  • Look for public audits, the size of the insurance fund and any auto-deleveraging rules.

  • Confirm which collateral and networks are supported before you move funds.

  • Size positions so a normal move cannot liquidate you. Our guide to position sizing in crypto trading explains how.

Most perp DEXs require stablecoin collateral on a specific network. If you hold a different coin, you can exchange it for the needed asset on SimpleSwap and receive it directly in your wallet, choosing the network the platform supports.

FAQ

Is a perpetual DEX the same as a spot DEX?

No. A spot DEX swaps one token for another, and you own the result. A perpetual DEX lets you trade price exposure with margin and leverage, without holding the underlying asset.

Do I need KYC to use a perp DEX?

Many perp DEXs only require a wallet connection, but some restrict access in certain regions or use front-end checks. Always read the platform's terms for your jurisdiction.

Who pays the funding rate?

Traders pay each other. When funding is positive, longs pay shorts; when it is negative, shorts pay longs.

Can I lose more than my margin?

In isolated margin mode your loss is usually limited to the margin of that position. In cross margin mode, other balances in the account can be used to cover losses, so more of your collateral is at risk.

Why was I liquidated when the chart barely touched my level?

Liquidation uses the mark price and maintenance margin, plus accrued fees and funding. Those can push your liquidation level closer than a simple calculation suggests.