← Glossary

Trading & DeFi

What Is an Order Book? How Exchanges Match Buyers and Sellers

An order book is the list of buy orders (bids) and sell orders (asks) that a trading venue records for an asset, which a matching engine uses to execute trades when a bid meets an ask.

Key takeaways

What it is

An order book is a list of what buyers and sellers want. Each entry records a quantity and a price. Buy orders are called bids and sell orders asks. The venue keeps these sorted so the best prices are at the top: the highest bid and the lowest ask. Together these top entries define the current market price and the gap between them, the spread.

How matching works

A matching engine uses the book to execute trades. When a new buy order arrives at a price equal to or higher than the lowest ask, it can be filled immediately against that ask. If no ask is low enough, the order waits in the book as a bid until a seller agrees to its price. Orders at the same price are usually filled in the order they arrived.

Reading depth

Beyond the top of the book, the list shows how much is offered at each further price, which is called market depth. A deep book has large quantities near the current price, so a big order moves the price only a little. A thin book has little behind the top, so even a modest order can push the price a long way. That is one reason low-volume coins show wider spreads and bigger price swings.

Order books vs liquidity pools

Centralised exchanges and some decentralised ones run order books. Many on-chain exchanges instead use automated market makers, which hold reserves in a pool and set prices with a formula such as x times y equals k, as Uniswap v2 does. The user experience looks similar, but the mechanics differ: a pool is always willing to trade at a price set by its reserves, while a book trades only when someone has placed a matching order.

Why it matters

Understanding the book helps you judge whether the quoted price is one you can actually trade at, and how much a larger order might cost you in price impact.

Example

The best bid is 99.90 and the best ask is 100.10, a spread of 0.20. If you place a buy order at 100.10 or higher for a small size, it fills immediately against the lowest ask. A buy at 99.50 waits in the book.

Put it into practice

See the market behind a quoted price

Scrypt Price lists the exchanges and on-chain markets behind each coin's price, with their volumes, so you can judge how deep the market is before you trade.

Explore Scrypt Price Get Scrypt for Android

Frequently asked questions

What is the spread?

The gap between the highest bid and the lowest ask. It is a cost of trading immediately.

Does a DEX use an order book?

Some do. Many, such as Uniswap, use liquidity pools and a pricing formula instead.

What is market depth?

How much is offered at prices beyond the best bid and ask. More depth means large orders move the price less.

Related terms

Go deeper

Written by the Scrypt Wallet team · Updated 2026-10-02. General education, not financial, tax or legal advice.