DeepBook: Spot & Margin Primitives for Builders
DeepBook’s Spot and Margin primitives give builders shared liquidity and built-in leverage from day one, so you can ship trading products without building the underlying infrastructure.
Main Takeaways
- DeepBook’s Spot and Margin primitives handle shared liquidity, order matching, and leverage so teams can focus on building product instead of rebuilding trading infrastructure.
- Composability is already working in production. DeepTrade, Turbos, and Cetus each combine Spot and Margin differently, showing how shared infrastructure speeds up product development.
- Permissionless pool creation removes governance delays. You can deploy a new trading pair instantly and tap into liquidity from 20+ integrated apps.
Let us handle the plumbing
Building a leveraged trading product on-chain is harder than it should be. Before you write product code, you’re dealing with infrastructure, liquidity, and core trading systems most chains leave entirely to you. This slows teams down and pulls focus away from the building the product.
DeepBook removes that overhead. It provides shared liquidity from day one and audited infrastructure you can build on. Two primitives, Spot and Margin, are live on Sui mainnet. They are composable, permissionless, and already powering 20+ products with over $17B in cumulative on-chain volume.
Explore what’s live today, how teams are already building on it, and what you can build next ⬇️
The primitives: what's live
Spot is the core onchain order book for Sui. It provides real price discovery through shared liquidity, removing the need to bootstrap markets from scratch. It has $20M in TVL and has powered over $17B in cumulative on-chain volume. Eight protocols have integrated it: Aftermath, Bluefin, Cetus, Turbos, Momentum, STEAMM, Full Sail, and DeepTrade.
The system is built on shared objects: a Balance Manager for accounts, a Pool Registry for pair management, and per-pair Pools that hold the order book and vaults. Orders are matched at microsecond-level speed, with trades settling on-chain in under 400ms and negligible gas costs.
Margin brings fully onchain leverage into the same shared liquidity system. Users can borrow, trade, and earn yield without relying on separate lending infrastructure. It launched in January 2026 and already has $20M in cumulative volume. Five protocols are integrated: DeepTrade, Abyss, Current, Turbos, and Cetus.
Margin supports up to 10x leverage with isolated pools, real-time liquidation, and flexible fees. Leverage becomes a primitive you can build on, not infrastructure you have to create.
Composability: combining Spot & Margin
The strongest evidence that shared infrastructure works is how teams compose across primitives in production.Three protocols — DeepTrade, Turbos, and Cetus — have integrated both Spot and Margin, and each shows a different way composability works in practice.
DeepTrade built a full trading interface on top of DeepBook. They use Spot for order execution and Margin for their leveraged long/short features, running their own liquidation bots against DeepBook's margin pools. Their engineering effort went into UI, UX, and product-layer features, not matching engines or settlement logic. When DeepBook V3.1 shipped permissionless pool creation, DeepTrade migrated immediately, underscoring the speed advantage of building on shared infrastructure.
Turbos Finance already had a concentrated liquidity AMM. Instead of building their ownorder book, they integrated DeepBook's shared order book for additional liquidity depth alongside their existing pools. On the Margin side, they launched high-yield lending pools supplying SUI, USDC, DEEP, and WALRUS, with USDC deposits yielding over 20% annually at launch, in collaboration with DeepBook and Abyss.
Cetus Protocol built a dedicated DeepBook UI (deepbook.cetus.zone), integrated DeepBook liquidity into their Cetus Plus swap aggregator, and published an open-source utility SDK (@cetusprotocol/deepbook-utils-sdk on npm) for other builders integrating DeepBook programmatically. As their developer docs put it: DeepBook is "a central limit orderbook developed and maintained by the Sui Foundation, and Cetus provides a user-friendly interface to access DeepBook services, amplifying the strength of DeepBook and upgrading the liquidity depth and trading activity on both Sui Network and Cetus Protocol."
What can you build?
Spot and Margin together go beyond more than basic trading frontends. Pool creation is permissionless, so if your product needs a new trading pair you deploy it immediately with no governance cycle required. This removes weeks or months of setup.
With a shared order book and built-in leverage, you can build:
Structured products. Combine Margin's leverage with Spot execution to build vaults that run automated strategies: basis trades, delta-neutral positions, yield optimization, without building the underlying infrastructure.
Options and derivatives logic. Margin's isolated pools and real-time liquidation give you the risk management primitives. Spot gives you the execution layer. The options protocol is your product code on top.
Portfolio margin tools. Cross-reference positions across Spot and Margin pools to build risk dashboards, margin calculators, or automated rebalancing, inheriting shared liquidity depth from 20+ integrated apps from day one.
Aggregation layers. Follow the Cetus playbook: build routing that pulls from DeepBook's order book alongside other liquidity sources, and publish tools that make integration faster for the next builder.
Each of these is a product that would take months to build from scratch. On DeepBook, we take care of the infrastructure so you can focus on product.
Ready to get started?