Book a free call

How to Build an Institutional-Grade DEX, Step by Step

An institutional-grade DEX adds compliance, custody, deep liquidity and audited contracts to a decentralised exchange. Here is how it differs from a retail DEX.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How to Build an Institutional-Grade DEX, Step by Step
On this page

Short answer

Building an institutional-grade DEX means building a decentralised exchange that meets institutional requirements: verified counterparties, compliant access controls, segregated custody, deep liquidity with low slippage, and audited, monitored contracts. The build follows the same core pieces as a retail DEX, but adds permissioned access, market-maker and RFQ liquidity, and operational controls before launch.

What is an institutional-grade DEX?

An institutional-grade DEX is a decentralised exchange built for professional traders, funds and treasuries rather than retail users. It keeps the core idea of a DEX, which is that trades settle on-chain without a central custodian holding the funds, and adds the controls institutions require before they can trade.

The difference is not the trading model. A retail DEX optimises for open access and simple swaps, while an institutional DEX optimises for counterparty checks, execution quality, reporting and risk limits. The same swap can look very different when the order is worth millions and the trader is a regulated fund.

Institutions trade through the DEX because they want settlement without a central intermediary, but they still need to know who they are trading with, prove where funds came from, and produce records for auditors. An institutional-grade build answers those needs in the product itself, rather than leaving them to the trader's back office.

What makes a DEX institutional-grade?

A DEX becomes institutional-grade when it meets five tests: verified access, compliant settlement, deep liquidity, safe custody and reliable operations. Missing any one of them keeps professional desks away.

Area Retail DEX Institutional-grade DEX
Access Anyone with a wallet can trade Verified counterparties, allowlists
Compliance Minimal checks KYC, AML screening, audit trails
Liquidity Open pools, variable depth Market makers, RFQ, deep pools
Custody Self-custody only MPC, multisig, segregated wallets
Reporting On-chain history only Trade reports, tax and audit exports
Uptime Best effort Monitored, with incident response

The table is a useful gate for the build: if a feature does not serve one of these six rows, it can wait until after launch. For the exchange itself, see how to build a DEX for the retail baseline this build extends.

Architecture: matching, settlement and custody

The architecture of an institutional-grade DEX separates three jobs: matching orders, settling trades and holding funds. Keeping them separate lets each one meet its own requirements without weakening the others.

Matching can happen off-chain in an order book or through an automated market maker on-chain. Off-chain matching gives faster quotes and lower gas costs, while on-chain settlement keeps the trade trustless. Many institutional builds use an off-chain matching engine with on-chain settlement, so the exchange can offer request-for-quote pricing and still settle without a central intermediary.

Settlement should be atomic where possible: either both sides of the trade complete or neither does. That removes settlement risk, which is one of the main reasons institutions prefer on-chain settlement to bilateral deals.

Custody is where institutional builds differ most. Retail users hold their own keys, but funds need segregated wallets, multi-party computation or multisig signing, and clear rules about who can move funds and under what conditions. The custody design should be agreed with the fund's own compliance team before any code is written, because it shapes the contracts. For the wider exchange build, DEX development covers the core components and their trade-offs.

Compliance and access controls

Compliance is built into an institutional-grade DEX from the start, not added after launch. The exchange must be able to show who traded, what was checked, and what happened to each order.

Access starts with verification. Counterparties pass identity checks before they can trade, and their wallets are added to an allowlist that the contracts enforce. Sanctioned addresses and high-risk wallets are screened out, and the screening runs continuously, not just at onboarding, so a wallet that later appears on a list loses access.

Every trade needs an audit trail: who placed the order, what price was quoted, when it settled, and what fees were charged. The data should export in a form the fund's auditors and tax advisers can use without manual reconstruction.

Jurisdiction matters too. Some tokens and some trading models are treated as securities in some places, and the exchange needs legal advice on which assets it can list and which users it can serve. That advice shapes the allowlist rules and the token onboarding process, so get it before the contracts are final.

Liquidity: market makers, RFQ and permissioned pools

Liquidity is the make-or-break feature for institutional traders. A fund will not route a large order to a venue where it moves the price against itself, so the build must guarantee depth before it opens.

Market makers provide that depth. The exchange signs agreements with professional makers who quote both sides of the market and commit to a minimum spread and size. Their incentives are usually fee rebates or a share of trading fees, and the agreements should include uptime and quoting obligations, not just a handshake.

Request-for-quote, or RFQ, is the second liquidity route. A trader asks several makers for a price on a large order, picks the best quote, and settles on-chain. RFQ suits large trades because the price is locked before execution and the order never sits in a public order book where others can trade against it.

Permissioned pools are the third option. Liquidity providers who pass the same verification as traders deposit into pools that only verified counterparties can use. The pools keep the open, composable feel of DeFi while limiting who can trade in them, which is what institutions ask for. A DAO-governed variant of the same idea is covered in how to build a DAO-governed DEX.

How to build an institutional-grade DEX

You build an institutional-grade DEX by locking the compliance and custody design first, then building the trading engine, then adding liquidity before opening to traders.

  1. Define the trading model. Choose between an automated market maker, an order book, RFQ, or a mix, and decide which assets and pairs the exchange will support at launch.
  2. Settle the legal position. Get advice on licensing, which assets can list, and which jurisdictions the exchange can serve. Write the access and listing rules from that advice.
  3. Design custody and signing. Pick the wallet model, such as MPC or multisig, define signing thresholds, and agree the fund-movement rules with the compliance team.
  4. Build the contracts. Write the settlement, pool and access-control contracts, keep them small and auditable, and put the allowlist logic where it cannot be bypassed.
  5. Build the matching and RFQ layer. Add the off-chain matching engine or RFQ service, with price feeds, quote expiry and protection against stale quotes.
  6. Onboard market makers. Sign makers before launch, agree quoting obligations and fee terms, and test their flow end to end with real orders.
  7. Audit, test and monitor. Run a full smart contract audit, test failure cases such as a stalled settlement, and set up monitoring and an incident response plan before the first live trade.

Launch with a small set of verified counterparties and a small set of pairs. Widen access only after the first weeks of live trading show stable execution and clean reporting.

Example (hypothetical): a fund routes a large order

Example (hypothetical): a fund wants to buy $2,000,000 of a token. On an open retail pool, the order would move the price by 1.2%, which costs the fund $24,000 in slippage.

On the institutional DEX, the fund requests quotes from four market makers through RFQ. The best quote prices the trade at 0.35% over the reference price, which costs $7,000. The fund saves $17,000 compared with the open pool, and the price is locked before the trade settles, so there is no surprise between quote and execution.

The trade settles on-chain in one atomic transaction, the fund's custodian signs with its MPC wallet, and the exchange records the order, the quote, the settlement and the fee in the audit trail. The fund's back office exports the record the same day, and the whole flow takes minutes instead of the hours a bilateral deal would need.

What are the common mistakes?

The most common mistakes are launching without committed liquidity, treating compliance as a later phase, and building contracts that cannot be paused or upgraded safely.

  • Opening without market makers. A DEX with no depth is a DEX nobody trades on. Sign makers and test their flow before launch, not after.
  • Bolting on compliance. Access control and audit trails are hard to add to finished contracts. Design them in from the first architecture sketch.
  • Ignoring quote expiry. A quote that stays valid too long lets traders pick off stale prices. Set short expiry and enforce it in the contract.
  • Weak custody rules. If anyone with one key can move funds, the fund's compliance team will refuse to connect. Define thresholds and segregation early.
  • No incident plan. A stalled settlement or a bad price feed needs a rehearsed response. Write the runbook and test it before launch.

If the exchange is part of a wider trading product, a partner for crypto exchange development can help plan the institutional controls alongside the core build.

Key takeaways

  • An institutional-grade DEX adds verified access, custody and reporting to a standard DEX
  • Off-chain matching with on-chain settlement gives fast quotes without giving up trustless settlement
  • Market makers and RFQ pricing are what keep large orders from moving the price
  • Compliance, custody and audit trails must be designed in from the start, not added later
  • Launch with a small set of verified counterparties and widen access only after live trading proves stable

Frequently asked questions

What is the difference between a retail DEX and an institutional-grade DEX?

A retail DEX is open to anyone with a wallet and optimises for simple swaps. An institutional-grade DEX adds verified counterparties, compliance checks, segregated custody, market-maker liquidity and audit-ready reporting, so funds and treasuries can trade on it.

Do institutional DEXs need KYC?

In practice, yes. Institutions need to know who they trade with and to show regulators and auditors that sanctions and anti-money-laundering checks were done. Most institutional builds enforce identity checks and wallet allowlists in the contracts.

What is RFQ in a DEX?

Request-for-quote lets a trader ask several market makers for a price on a specific order, then pick the best quote and settle on-chain. It suits large orders because the price is locked before execution and the order is not exposed in a public order book.

How is custody handled on an institutional DEX?

Funds use segregated wallets with multi-party computation or multisig signing, so no single key can move funds. The custody design, including signing thresholds and who can authorise movements, is agreed with the fund's compliance team before launch.

Can an institutional DEX use an automated market maker?

Yes, but usually as a permissioned pool that only verified counterparties can use. The pool keeps the AMM's simple pricing while limiting access, and market makers often add depth alongside it for larger orders.

How long does it take to build an institutional-grade DEX?

The trading engine itself can take a few months, but the compliance design, custody setup, market-maker onboarding and audit add significant time. Plan for the legal and liquidity work to take as long as the engineering, and launch with a small set of pairs first.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a DEX for institutional traders and need the compliance and liquidity design right? Talk to Hertiv.

A senior engineer replies within one business day. Or see our DEX Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call