Get 20% off all challenges

Perp DEX: How Decentralized Perpetual Exchanges Work

What a perp DEX is, how order book and pool-based designs work, how fees, funding and liquidations compare with a centralized exchange, and the main risks.

Gianluca Pizzituti••15 min read
Share article
Perp DEX: How Decentralized Perpetual Exchanges Work

Trade crypto with funded capital

Explore crypto

A perp DEX is a decentralized exchange for perpetual futures: leveraged contracts with no expiry that track the price of a coin. You trade from your own crypto wallet instead of depositing with a company, and the rules for margin, funding and liquidation run on a blockchain instead of inside one firm's database.

This guide explains how a perp DEX works, the two main designs (on-chain order books and liquidity pools), how fees, funding and liquidations compare with a centralized exchange, and the risks that are specific to trading perps on-chain.

Quick answer: A perp DEX lets you trade perpetual futures directly from a self-custody wallet. Orders are matched either on an on-chain order book (Hyperliquid, dYdX) or against a shared liquidity pool priced by oracles (GMX, Jupiter Perps). You keep control of your collateral until you trade, but you take on smart contract, oracle and bridge risk that a centralized exchange does not have.

Highlights of this article

  • A perp DEX is a decentralized exchange for perpetual futures, used from a self-custody wallet
  • Two main designs: on-chain order books, where traders trade with each other, and pool-based exchanges, where traders trade against a liquidity pool priced by oracles
  • Funding, mark price and liquidation work much like on a centralized exchange, but the rules are public and enforced by code
  • On-chain risks include smart contract bugs, oracle manipulation, bridge failures and front-end outages
  • Velotrade, a multi-asset prop trading firm, is not a DEX: it offers simulated evaluations on DXtrade with crypto prices comparable to KuCoin USDT perpetuals

Perp DEX: key facts

Item Detail
Definition A decentralized exchange for perpetual futures, traded from a self-custody wallet
Main designs On-chain order book (Hyperliquid, dYdX) or oracle-priced liquidity pool (GMX, Jupiter Perps)
Collateral Usually a stablecoin such as USDC, held in the exchange's smart contracts or chain
Funding Paid between longs and shorts, often hourly instead of every 8 hours
Liquidation Triggered by a mark price, executed by the protocol or a backstop vault
Account A wallet address; many front ends do not ask for an account sign-up
Main risks Smart contracts, oracles, bridges, thin liquidity on small markets, leverage
Related terms Funding rate, mark price, open interest, liquidation

What is a perp DEX?

A perp DEX is an exchange where perpetual futures are traded through smart contracts or a purpose-built blockchain rather than through a company that holds customer funds. The contract is the same product you find on a centralized exchange: a leveraged long or short position on a coin's price, kept close to spot by a funding rate, with no expiry date. If you are new to the product itself, start with the perpetual futures guide and the wider crypto derivatives overview.

What changes is who holds the money and who runs the rules. On a centralized exchange (CEX), you deposit funds with the exchange, it keeps an internal ledger, and its own engine matches orders and liquidates positions. On a perp DEX, your collateral sits in smart contracts or on the exchange's own chain, and the margin, funding and liquidation logic is published as code that anyone can inspect.

People search for "perp DEX" for three main reasons: to trade without handing funds to a company, to reach coins that big exchanges have not listed yet, and to take part in token incentive programs. Each of those comes with trade-offs, covered below.

How does a perp DEX work?

Every perp DEX has to solve the same four problems: where prices come from, who takes the other side of your trade, how collateral is held, and who closes positions that run out of margin. There are two main designs.

On-chain order book perp DEXs

An order book perp DEX works like a centralized exchange: buyers and sellers post limit orders, and trades happen when a buy and a sell meet. The difference is that the book lives on a blockchain.

  • Hyperliquid runs its own layer 1 blockchain with a custom consensus called HyperBFT. According to its documentation, its perpetual futures and spot order books are fully on-chain, and every order, cancel, trade and liquidation is recorded on the chain.
  • dYdX (version 4) runs on its own chain built with the Cosmos SDK. Each validator keeps an order book in memory, block proposers match orders from that book, and the matched trades are committed in blocks.

In an order book design, your counterparty is another trader or a market maker. Prices come from the book itself, with an index of external exchange prices used for the mark price and funding. Read more on how limit and market orders behave in market order vs limit order.

Pool-based (oracle) perp DEXs

A pool-based perp DEX has no order book. Liquidity providers deposit assets into a shared pool, and traders open positions against that pool at a price supplied by an oracle (a data feed that brings external prices on-chain).

  • GMX, best known on Arbitrum, is the main example. Traders open positions against liquidity pools at oracle prices and pay borrowing fees, funding fees and a price impact charge that grows with trade size.
  • Jupiter Perps on Solana uses the same idea: traders trade against a liquidity pool whose providers earn fees and take the other side of trader profit and loss.

In a pool design, the pool is your counterparty. When traders as a group make money, the pool loses; when they lose, the pool gains. Because prices come from an oracle instead of the book, large trades can fill near the oracle price with little visible slippage, but the protocol adds price impact fees and open interest caps to protect the pool.

A laptop showing a blockchain app next to cash
On a perp DEX the wallet is the account: collateral stays in smart contracts or on the exchange's chain.

Order book vs pool: comparison

On-chain order book Pool-based (oracle)
Examples Hyperliquid, dYdX GMX, Jupiter Perps
Counterparty Other traders and market makers A liquidity pool funded by providers
Price source The order book, with an external index for mark price Oracle price feeds
Order types Limit, market, stop and more Mostly market orders with limit and trigger options
Large trade cost Spread and slippage through the book Price impact fee and caps on open interest
Main design risk Thin books on small markets Oracle errors and pool losses when traders win

Perp DEX vs centralized exchange

The trading experience is close to a centralized exchange, which is why many traders move between the two. The structure underneath is different.

Perp DEX Centralized exchange (CEX)
Custody Self-custody wallet; collateral in smart contracts or on the exchange chain Exchange holds customer funds
Account A wallet address Sign-up, usually with identity checks
Transparency Positions, liquidations and rules visible on-chain Internal ledger; you rely on the exchange's reports
Listings New coins often listed quickly Listings go through the exchange's own process
Funding interval Often hourly Commonly every 8 hours
Fees Trading fees plus network or gas costs on some designs Trading fees, often with volume tiers
Failure risk Smart contract, oracle and bridge failures Exchange insolvency, withdrawal freezes
Support Community and documentation Customer support desk

Neither model removes risk. A centralized exchange can freeze withdrawals or fail. A perp DEX can lose funds to a bug or a manipulated price feed. The risk moves from trusting a company to trusting code and data feeds.

How do fees, funding and liquidations work on a perp DEX?

Trading fees. Order book perp DEXs charge maker and taker fees like a CEX. Hyperliquid's documentation lists base perpetual fees of 0.045% for takers and 0.015% for makers, falling with volume. Pool-based exchanges charge an opening and closing fee plus borrowing fees for as long as the position stays open.

Funding. Funding works the same way as on a centralized exchange: when the perpetual trades above the index, longs pay shorts, and the reverse when it trades below. The interval is often shorter. Hyperliquid pays funding every hour, with each payment equal to one-eighth of the computed 8-hour rate. Our funding rate guide shows how to turn a funding percentage into a dollar cost for your holding period.

Mark price. Liquidations use a mark price rather than the last trade, so one large order cannot liquidate everyone at once. On Hyperliquid, the mark price combines external exchange prices with the state of its own book.

Liquidation. When your equity falls below the maintenance margin, the protocol closes the position. On Hyperliquid, positions are first closed with market orders on the book; if equity falls further, a backstop vault takes over the position. On pool-based exchanges, keeper bots trigger liquidations at the oracle price. Margin mode still matters: see cross vs isolated margin and what is liquidation in trading.

Worked example: a 5x long on a perp DEX

Assume you deposit 2,000 USDC and open a 5x long on a perpetual at 50,000 USD per coin.

  • Position size: 2,000 x 5 = 10,000 USD notional (0.2 coin)
  • Taker fee to open at 0.045%: 10,000 x 0.00045 = 4.50 USD
  • Funding at 0.00125% per hour for 24 hours: 10,000 x 0.0000125 x 24 = 3 USD
  • Price rises 4% to 52,000: profit = 0.2 x 2,000 = 400 USD
  • Taker fee to close on 10,400 USD: about 4.68 USD

Net result: about 400 - 4.50 - 3 - 4.68 = 387.82 USD, or 19.4% of the 2,000 USDC deposited. A 4% fall would cost about the same amount plus fees. Leverage multiplies the result in both directions, and fees and funding are charged on the full notional, not on your deposit. The numbers are illustrative: fees, funding and liquidation levels change by venue, market and account tier.

What are the risks of trading on a perp DEX?

Perpetual futures are high risk on any venue. A perp DEX adds risks of its own.

  • Smart contract risk. A bug in the exchange code can lock or drain collateral. Audits reduce this risk but do not remove it.
  • Oracle manipulation. If a price feed can be pushed, positions can be valued at false prices. In January 2023 the US Commodity Futures Trading Commission charged a trader over an October 2022 oracle manipulation on Mango Markets, a decentralized exchange, that took more than 110 million USD in digital assets, according to the CFTC.
  • Thin liquidity on small markets. Newly listed coins can have shallow books or tight open interest caps, so a stop can fill far from its trigger price.
  • Bridge and chain risk. Moving collateral to an exchange's chain often uses a bridge, and bridges have been a common target for exploits. A chain halt can also stop you from closing a position.
  • Front-end and access risk. The website you use may be blocked in some countries or go offline, even when the protocol keeps running.
  • Leverage. High leverage turns small price moves into liquidations, whatever the venue. The rules in never get liquidated again apply on-chain too.

Broker disclosures and academic studies consistently find that most retail traders using leverage lose money. Size positions as if every one of them can go to zero.

Crypto trading charts on two screens in a dark room
Funding, mark price and liquidation rules work much like a centralized exchange, but they are written in public code.

How do you choose a perp DEX?

If you decide to trade on a perp DEX, check these points before depositing:

  1. Design. Order book or pool? Order books suit limit orders and active trading; pools suit simple market entries on major coins.
  2. Liquidity per market. Look at the order book depth or pool open interest for the coins you trade, not the exchange's headline volume.
  3. Fees and funding. Read the fee schedule and the funding interval and cap. Convert both into dollars for your usual trade size and holding time.
  4. Liquidation rules. Find the maintenance margin, the mark price formula and what happens in a backstop liquidation.
  5. Security record. Check audits, past incidents and how the team responded.
  6. Bridging and withdrawals. Know how you move USDC in and out, how long it takes and what it costs.
  7. Access. Confirm the service is available where you live and read its terms.

Trading perps without your own capital

A perp DEX and a perps prop firm solve different problems. On a perp DEX you trade your own capital, so every loss is yours. A perps prop firm gives you a simulated account priced from perpetual markets: you pay a one-time fee, pass an evaluation under fixed risk rules, and trade a funded account with a share of the profits. Your maximum loss is the fee, not your wallet.

Velotrade, a multi-asset prop trading firm, is not a DEX and does not use your wallet for trading. It runs simulated evaluations on DXtrade, with crypto prices comparable to the KuCoin USDT perpetual symbols on TradingView. There is no variable funding rate: crypto positions open at 00:30 UTC pay a flat 0.05% overnight rate, long or short. BTC trades at up to 10x in the challenge and 5x on a funded account, and the maximum drawdown is static, a fixed floor that does not trail your profits. Crypto trades 24/7, alongside forex, stocks, index ETFs and commodities on the same account. See the crypto page for the full list.

For the firms that price accounts from Hyperliquid, Binance or Bybit perpetuals, compare the best perps prop firms. For the difference between margin trading and a funded account, read funded trading vs leverage trading.

Velotrade is unregulated and offers educational, simulated evaluations with real-time market pricing. This article is educational and is not investment advice. Last updated: November 2026. Exchange fees, funding rules and listings change often, so check each venue's documentation before trading.

Sources

Frequently Asked Questions

About the author

Gianluca Pizzituti

Gianluca Pizzituti

Chief Executive Officer

Formerly on the derivatives desk at Dresdner Kleinwort in London, then founded and ran a proprietary HFT firm in FX and equity indices out of Singapore.

Velotrade was founded in Hong Kong in 2016 by a team from JP Morgan, Dresdner Kleinwort and Bank of America, has paid out over $2.5 billion to its trade-finance clients, and has been featured in Bloomberg, the Financial Times, the Wall Street Journal and on Nasdaq. Its prop trading evaluations are simulated and educational.

View author page

Ready to trade with
$200,000 capital?

Up to 90% profit split

Keep most of what you earn

No consistency rule

News trading allowed

Payouts within 24 hours

Once approved