Skip to main content
Blocktape

Crypto markets, protocols and policy

Pool Execution vs CEX Order Books: How Crypto Trades Fill

Pool execution prices swaps against shared liquidity, while CEX order books match bids and asks; learn how routing, depth, fees and slippage affect a trade.

The Blocktape Editors 3 min read 2b60df

Cover artwork for Pool Execution vs CEX Order Books: How Crypto Trades Fill

Pool execution prices a crypto swap against shared token liquidity, while a centralized exchange (CEX) matches buy and sell orders in an order book. The difference shapes the price you receive, how your trade fills and where execution takes place.

How does pool execution work?

A liquidity pool holds tokens that traders can exchange according to rules set by its smart contract. In a constant-product pool, for example, the contract adjusts the token ratio as a trade changes the reserves; a larger trade against a shallow pool generally moves the price more than a smaller one.

Swap interfaces can compare or combine routes through different pools. Byreal’s documentation describes routing across its own pools, external automated market makers and off-chain request-for-quote (RFQ) providers. For a product-specific explanation, read how Byreal handles Solana swaps.

Before submitting a swap, check the quoted output, network and pool fees, and the minimum output permitted by the transaction. The quote is an estimate: pool state can change before confirmation, and a minimum-output limit can cause the transaction to fail if the result falls below that threshold.

How does a CEX order book fill a trade?

A CEX order book lists bids from buyers and asks from sellers at different prices. Its matching engine pairs compatible orders, typically giving priority to better prices and then to orders already waiting at the same price.

A market order seeks an immediate fill by taking available orders on the other side of the book. If the best-priced orders do not have enough size, the remainder can fill at less favorable prices. A limit order sets the worst price the trader will accept, but it may wait unfilled if the market does not reach that price.

On a CEX, trading usually takes place inside the exchange’s system against customer orders. Pool swaps instead change on-chain pool balances through a blockchain transaction. That distinction affects custody and settlement: a CEX user generally needs to withdraw assets to move them on-chain, while a pool swap uses a wallet transaction directly.

Which method gives the better price?

Neither method guarantees the better result. A deep order book can absorb a trade with little movement if enough orders sit near the current price; a deep pool can offer a similar advantage when its active liquidity is near the trade’s price. Thin liquidity in either venue can increase the cost of execution.

Compare the full result, not just the displayed price. For a pool swap, look at price impact, estimated slippage, fees and any extra hops in the route. For a CEX, look at the spread between the best bid and ask, the quantity available at each price, trading fees and whether your order may only partly fill.

  • Use a market order when immediate execution matters and the visible book can handle the size.
  • Use a limit order when price control matters more than certainty of a fill.
  • Use a pool swap when you want to trade from a wallet through available on-chain liquidity.
  • For a large trade, compare quotes and depth, then consider splitting the order if that reduces price impact without adding excessive fees.

The practical choice is the route that delivers the required amount at an acceptable total cost and execution risk. Check the live quote or order book just before trading; the next step is to submit within your chosen price or minimum-output limit, then confirm the fill or transaction status.

Related stories