Book a free call

How to Build a High-Performance Sui Exchange

Sui's object model and sub-second finality make it a strong base for a fast exchange. Here is the stack, the design choices and the build steps.

Hertiv engineering teamReviewed by a senior engineer
5 min read
How to Build a High-Performance Sui Exchange
On this page

Short answer

A high-performance Sui exchange is a trading platform built on the Sui blockchain that uses the Move language, the object model and parallel execution to match and settle trades in about 400 milliseconds. You build it with Sui Move contracts, an order book or AMM design, an indexer for market data and a wallet connection for users.

What is a Sui exchange?

A Sui exchange is a trading platform built on the Sui blockchain, a layer-1 network built by Mysten Labs that stores every asset as a distinct object with an explicit owner. Traders connect a wallet, place orders and settle trades on Sui, where independent transactions run in parallel instead of one at a time.

The exchange itself is a set of Move smart contracts plus the services around them: a web interface, an indexer that reads on-chain data, a price feed and a wallet adapter. The contracts hold the pools or the order book; the services make the market readable and fast to use.

PartWhat it doesSui choice
ContractsPools and order bookSui Move
MatchingPairs bids and asksDeepBook or AMM pool
DataMarket prices and historyIndexer and RPC
WalletsUser sign-in and signingWallet adapter and zkLogin
SettlementFinal trade stateSui consensus, about 400 ms

Sui mainnet launched in May 2023, and its design targets trading workloads: fast finality, low fees and parallel execution. That is why exchanges on Sui can settle trades in well under a second.

Why Sui fits high-speed trading

Sui fits high-speed trading because its object model lets the network run independent transactions at the same time. Each asset is a separate object, so two trades that touch different objects do not wait for each other. Simple transfers on owned objects can settle through a fast path without full consensus.

Shared objects, such as a liquidity pool or an order book that many traders touch, still go through consensus. That consensus is Mysticeti, a directed acyclic graph protocol that has run on mainnet since July 2024 and finalises most transactions in roughly 400 milliseconds.

Move, the contract language, treats assets as resources that cannot be copied or lost by accident. That helps avoid a class of bugs that has cost other exchanges money, though it does not protect against wrong application logic, so audits still matter. For a comparison with the other fast chain, see how to build a Solana DEX.

Order book or AMM: which design fits Sui?

An order-book exchange lists bids and asks and matches them by price and time. On Sui, DeepBook is the on-chain central limit order book that other exchanges build on, and it suits traders who want limit orders and visible market depth.

An automated market maker prices trades with a pool formula instead of an order book. Liquidity providers deposit two assets, traders swap against the pool, and the price moves with the ratio. AMMs are simpler to build and suit common pairs with steady volume.

The choice depends on your traders. An order book fits professional traders and new listings that need price discovery. An AMM fits a simple swap product and a team that wants to launch fast. Some exchanges run both: an AMM for long-tail pairs and an order book for the main pairs.

What are the build steps for a Sui exchange?

Build a Sui exchange in seven steps, testing each one before moving on, so a mistake in the matching logic is caught before real funds arrive.

  1. Define the market. Pick the pairs, the traders and the order types you will support at launch.
  2. Choose the design. Order book on DeepBook, AMM pool, or both, and write down why.
  3. Write the Move contracts. Keep the pool and order-book logic small and auditable.
  4. Add the indexer. Read prices, trades and balances from the chain into a fast database.
  5. Connect wallets. Support the main Sui wallets and zkLogin for easy sign-in.
  6. Test with fake funds. Run the full trade flow on testnet with real users and real trade sizes.
  7. Audit and launch small. Get an audit, then launch one pair with capped pools.

Keep the launch small: one pair, a capped pool and a monitored treasury. Raise the caps only after a week of clean trading. For the security habits that matter at launch, read how to build a secure crypto exchange.

How do you keep it fast under load?

Speed on Sui comes from design, not from bigger servers. The chain already runs independent transactions in parallel, so your job is to avoid creating shared objects that force trades into a single queue.

Split the market into separate pools or order books per pair, so a busy pair does not slow the others. Keep price data off the critical path by caching it in your indexer, and let the front end read from the cache instead of the chain on every render.

Watch the shared objects. A single pool that every trade touches becomes the bottleneck, so large pools should be split or routed through an aggregator. For the wider exchange picture, DEX development covers the patterns that apply across chains.

Example: a first-month AMM pool on Sui

Example (hypothetical): a team launches an AMM pool with 50,000 SUI and 100,000 USDC. The starting price is 100,000 divided by 50,000, which is $2.00 per SUI, and the pool's constant product is 50,000 times 100,000, or 5,000,000,000.

A trader swaps 5,000 USDC into the pool. The USDC side rises to 105,000, so the SUI side must fall to 5,000,000,000 divided by 105,000, which is about 47,619 SUI. The trader receives 50,000 minus 47,619, or about 2,381 SUI, at an effective price of about $2.10 per SUI.

The pool now holds about 47,619 SUI and 105,000 USDC. The price moved because the trade was large relative to the pool, which is why deeper pools give traders better prices and why the team plans to add liquidity before listing a second pair.

What are the common mistakes?

The most common Sui exchange mistakes are treating every object as shared, skipping the indexer, and launching with one large pool.

  • Designing all pairs around one shared object, which serialises every trade.
  • Reading prices straight from the chain on every page load, which slows the interface.
  • Skipping a testnet period with fake funds and real users.
  • Forgetting that Move stops asset bugs but not wrong pricing logic.
  • Launching with a shallow pool, so the first large trade moves the price sharply.

A Sui exchange is fast when the design respects the object model. Get the objects right, keep the shared state small and let the indexer carry the read load. For the wider development path, blockchain development shows how teams plan the full build.

Key takeaways

  • Sui treats every asset as an object, so independent trades run in parallel
  • Finality is about 400 milliseconds through the Mysticeti consensus protocol
  • DeepBook suits order-book trading; an AMM pool suits simple swaps
  • Keep shared objects small and let an indexer carry the read load
  • Launch one pair with capped pools and raise the caps after clean trading

Frequently asked questions

What makes Sui different from Ethereum for an exchange?

Sui stores assets as objects with explicit owners, so the network knows before execution which objects a transaction touches and can run independent trades in parallel. Ethereum orders transactions one after another. Sui also finalises most trades in about 400 milliseconds.

Do I need Move experience to build on Sui?

Yes, the contracts are written in Move, a resource-oriented language built for digital assets. A developer with Rust or Solidity experience can learn it, but the object model takes time to design well, so budget for learning and review.

What is DeepBook?

DeepBook is the on-chain central limit order book on Sui. Exchanges build on it instead of writing their own order book, which saves time and gives their markets shared liquidity and visible depth.

How much does it cost to build a Sui exchange?

It depends on the design and the team. An AMM with one pair is the cheapest build, while an order-book exchange with an indexer, wallet support and audits costs far more. Get quotes for a written scope rather than a rough idea.

Can a Sui exchange list any token?

Any token that exists as a Sui object can be listed in a pool or order book, but listing is a business decision as well as a technical one. Check the token's rules, its liquidity and whether your market restricts it before you list.

Is Sui fast enough for professional traders?

For most spot trading, yes: finality of about 400 milliseconds and parallel execution keep the chain out of the way. Professional traders still care about your indexer speed, your price feed and your matching design, which are yours to build well.

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

Building an exchange on Sui and want the design checked before you start? 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