What Is an Order Book? How It Works in Trading

By Forex & Brokers DeskUpdated Nov 10, 2026

Order Book
Illustration · Fintrev

Definition

An order book is a real-time list of buy and sell orders waiting to be filled for an asset on a trading venue, organized by price level to show supply and demand.

Key takeaways

  • The top of the book is the highest bid and lowest ask, and the gap between them is the bid-ask spread.
  • Limit orders rest in the book until filled or canceled, while market orders take liquidity immediately.
  • Under price-time priority, the best price fills first, and earlier orders fill first at the same price.
  • Dark pools, hidden orders and stop-loss orders do not appear in the public book, so visible depth can mislead.

An order book is a real-time electronic list of the buy and sell orders waiting to be filled for a specific asset on a trading venue, organized by price level. Each row shows a price and the total quantity that buyers are bidding or sellers are offering at that price. Exchanges for stocks, bonds, futures, currencies and cryptocurrencies use order books to match buyers with sellers and to show market participants where supply and demand sit at any moment.

How an Order Book Works

An order book has two sides:

  • Bids (buy orders): prices at which traders are willing to buy, with the quantity at each level. The highest bid is at the top of the buy side.
  • Asks or offers (sell orders): prices at which traders are willing to sell. The lowest ask is at the top of the sell side.

Orders enter the book as limit orders, meaning they specify a price. A limit buy below the current best ask, or a limit sell above the current best bid, cannot fill immediately, so it rests in the book until a counterparty arrives or the trader cancels it. A market order never rests in the book. It takes liquidity from the opposite side at the best available prices until it is fully filled.

The matching engine decides who gets filled first. Many exchanges use price-time priority: the best price fills first, and among orders at the same price, the one entered earliest fills first. Because orders are constantly added, filled and canceled, the book changes continuously during trading hours. Some venues, such as Nasdaq, hold orders designated only for the open or the close in separate books that are used to set a single opening price and a single closing price.

Reading an Order Book

The top of the book is the highest bid and the lowest ask. Together they define the current market: a seller can sell immediately at the best bid, and a buyer can buy immediately at the best ask. The gap between them is the bid-ask spread.

The levels below the top show market depth: how much quantity is available at progressively worse prices. Depth determines how far a large order would move the price before it is fully filled. Brokers often distinguish between Level 1 data (top of book only) and Level 2 data (multiple price levels), and some venues sell even more detailed feeds.

Example of an Order Book

The following is a hypothetical book for a stock, XYZ:

Bid size Bid price Ask price Ask size
500 $10.00 $10.02 300
800 $9.99 $10.03 400
1,200 $9.97 $10.05 1,000

The best bid is $10.00 and the best ask is $10.02, so the spread is $0.02.

Market buy of 600 shares. The order takes all 300 shares at $10.02, then 300 of the 400 shares at $10.03. Total cost is $3,006 + $3,009 = $6,015, an average fill price of $10.025. The new best ask becomes $10.03 with 100 shares remaining. This assumes no other orders arrive or cancel during execution.

Limit buy of 1,000 shares at $10.03. The order fills 700 shares (300 at $10.02 and 400 at $10.03). The remaining 300 shares cannot fill at $10.03 or better, so they rest in the book as the new best bid. The top of the book is now $10.03 bid and $10.05 ask.

How Traders Use the Order Book

  • Estimating execution cost. Adding up the quantity at each level shows how much slippage a given order size is likely to cause, which matters alongside position sizing.
  • Spotting imbalances. A heavy concentration of bids relative to asks may signal short-term buying pressure, and the reverse may signal selling pressure. These are clues about the very short term, not forecasts.
  • Identifying support and resistance. A cluster of large buy orders at one price can act as a floor, and a cluster of large sell orders can act as a ceiling, as long as those orders stay in the book.
  • Gauging participants. On some stock exchanges the book identifies the brokerage behind an order unless it is posted anonymously, so traders may try to infer whether institutional or retail flow is driving activity.

Limitations of an Order Book

The book shows only displayed, resting orders on one venue, which leaves several blind spots:

  • Dark pools and hidden orders. Large players often route trades to dark pools or use hidden and iceberg orders so they do not move the price against themselves. These orders do not appear in the public book, so visible depth may understate or misrepresent true supply and demand.
  • Cancellations and spoofing. A resting order can be pulled at any moment. Spoofing, placing orders intended to be canceled before execution to mislead other traders, is illegal in US futures markets under the Dodd-Frank Act, but large displayed orders are still not guaranteed liquidity.
  • Pending conditional orders. A stop-loss order is typically not visible in the public book until it is triggered and becomes a live order.
  • Fragmentation. Stocks trade across multiple venues, and spot forex is largely an over-the-counter market with no single central order book, so any one book shows only the liquidity on that venue or that broker’s network.

Order Book vs. Similar Terms

  • Order book vs. trade history: the book holds unfilled orders; the trade history (often called “time and sales” or the trade tape) records completed transactions.
  • Order book vs. your order list: a broker app’s “orders” tab shows only your own working and past orders, not the whole market.
  • Order book of a company: in corporate reporting, “order book” means the backlog of customer orders a business has received but not yet delivered, a measure of future revenue unrelated to exchange trading.

The Bottom Line

Traders placing large orders benefit most from reading depth, since adding up the quantity at each level shows how much slippage an order may cause. Imbalances and order clusters offer short-term clues rather than forecasts, and displayed orders can be canceled at any moment. In spot forex, which has no single central order book, any one book reflects only the liquidity on that venue or broker's network.

About this page

Written by Forex & Brokers Desk

The Forex & Brokers Desk covers forex and CFD broker reviews, regulation checks, trading guides and the forex glossary.

Published
Last updated

Spotted an error? Tell the editors. This page is general information, not financial advice.