Cover photo

CLOB vs AMM

Why the Market Structure Is Part of Your Cost

You opened a position. The entry looked clean. But somewhere between the price you saw and the price you got, something happened. On most DEXs, that something has a name: the bonding curve. Understanding the difference between how AMMs and CLOBs actually work is not an abstract exercise. It changes the math on every trade you make.

How AMMs price your trade

post image

An AMM has no order book. It has a liquidity pool and a mathematical curve. When you buy, you shift the ratio of assets in the pool, the curve reprices, and you pay more than the mid-price. How much more depends entirely on your position size relative to pool depth.

Small trade, deep pool — barely noticeable. Large trade or thin pool — you are paying meaningfully above mid-price, and there is no line item that shows you the cost. It just happens.

Take a $20,000 long on a moderately liquid AMM perp. Pool depth is thin. Your price impact on entry is 0.4%. That is $80 out of the gate, before funding, before any market movement. Now you are also paying 0.03% funding every 8 hours — $6 per cycle, $18 per day, $126 per week. Three weeks of holding and you need the market to move over $450 just to break even on costs alone.

post image

For spot trading this is tolerable. For perps it creates a structural problem. If the perp price keeps drifting from spot because every large trade moves the curve, funding rate becomes erratic. You are not just paying slippage on entry. You are paying elevated funding for the entire duration of your hold because the market structure itself is constantly creating a gap between perp and spot.

How CLOBs price your trade

post image

A CLOB has a real order book. Actual orders at actual sizes at actual prices, placed by market makers and traders. You see the price before you trade. Execution happens at specific levels, not along a curve.

This changes two things for perp traders.

First, the perp price tracks spot more accurately. Market makers continuously arbitrage any gap because that is their business. A standing ask at $61,050 does not let the perp drift to $61,400 without someone closing that gap immediately. Deeper book means less deviation, means more stable funding. You are not paying for drift that exists purely because of how the market is structured.

Second, you know what you are agreeing to. On an AMM, slippage is a surprise you discover after execution. On a CLOB, you see the book, you see the depth at your level, and you decide before you touch the position. That is not a minor convenience. When you are sizing up, it is the difference between an informed entry and an expensive guess.

What this means for funding rate specifically

Funding rate exists to keep the perp price anchored to spot. The mechanism only works well when the two prices stay close. On an AMM, that anchoring is structurally weak. Large trades move the curve, perp drifts from spot, funding spikes. Market participants pay to hold positions not because sentiment is extreme, but because the plumbing is leaking.

On a CLOB, market makers are actively quoting both sides of the book at all times. The spread between perp and spot is tight because arbitrageurs close it the moment it opens. Funding rate reflects actual market positioning — longs heavy, longs pay; shorts heavy, shorts pay — not the noise created by thin liquidity and a bonding curve doing its math.

That distinction matters more than most traders realize. High funding on an AMM might mean the market is crowded long, or it might just mean someone put through a big trade and moved the curve. You cannot tell. On a CLOB, elevated funding means one thing: the market is positioned that way and you can read the book to see it.

Why DEX plus CLOB is a different conversation

post image

The reason CLOBs historically lived only on centralized exchanges is technical. Running a real order book on-chain is hard. AMMs became the default DEX design because they solved the liquidity problem without requiring counterparties to show up and post orders. That tradeoff made sense in 2020.

It created a false choice: either transparency and self-custody on-chain, or proper execution with a real book. Most DeFi traders learned to live with the slippage and the funding instability as the cost of being on-chain.

On a CEX, funding calculations, order matching, and index prices all happen on a server you cannot inspect. You see the output and trust that the math is correct.

On a DEX with a real order book, every funding settlement and every match is on-chain and verifiable. You get the book depth and execution quality of a CLOB without handing custody to anyone. The false choice goes away.

If you read the last post about funding rate — the part about how order book design affects funding stability was not an aside. It was the point. Thin liquidity on an AMM means more perp-to-spot deviation means more funding volatility. That shows up in your P&L whether you are watching it or not.