CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Order book

This page defines the order book, walks through a hypothetical example, and shows where you will see the term and which related terms to read next.

Extrade Pakistan editorial team ·

On this page
  1. What is an order book
  2. Formal definition
  3. Worked example (hypothetical)
  4. Where you see the term
  5. Edge cases experienced traders should know
  6. Related terms
  7. Frequent questions

What is an order book

An order book is a live list of the buy and sell orders waiting to be filled for an instrument, sorted by price.

The buy side holds bids, the prices buyers are willing to pay. The sell side holds asks (offers), the prices sellers will accept. The gap between the highest bid and the lowest ask is the spread. The view of how much volume sits at each price level is called market depth, or Depth of Market (DOM).

Sell orders (asks)Buy orders (bids)price1.085604.11.085506.81.085402.41.085305.01.085203.2spread 2.0 pip1.085004.51.084902.91.084806.11.084703.31.084607.2best ask →← best bidA market buy of 9 lots takes thehighlighted asks on three levels.Average fill price: 1.08527
Depth of market: the volume waiting at each price. A large order moves through several levels, so its average price is worse than the best quote. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

Formal definition

On an exchange, the order book is the matching engine's record of all resting limit orders (orders to buy or sell at a set price or better), grouped by price level. Within each level, orders are usually filled in time order. This is called price-time priority. A market order (an order to deal now at the best available price) does not rest in the book. It removes liquidity by trading against the resting orders.

The best bid and best ask together are the top of book. Everything behind them is the depth.

Worked example (hypothetical)

Take a made-up share with this book:

Side Price Size waiting
Ask Price C (highest) large
Ask Price B medium
Ask Price A (best ask) small
Bid Price Z (best bid) medium
Bid Price Y (lower) large

A trader sends a market buy order larger than the small size at Price A.

  1. The order first takes all of Price A.
  2. The rest of the order moves up to Price B and fills there.
  3. The trader's average price ends up above the best ask they saw on screen.

This is slippage caused by thin depth. The order may also be filled in pieces, which is a partial fill. If the trader had used a limit order at Price A, only the size available at that price, or better, would have filled.

Where you see the term

Edge cases experienced traders should know

Depth can disappear in seconds around news. With leveraged CFD or forex positions, slippage on a thin book can turn into a loss quickly. Read risk management before relying on depth data.

Frequent questions

What is the order book in simple words?

It is the list of buy and sell orders waiting at each price, with buyers on one side and sellers on the other.

Is market depth the same as the order book?

They are closely linked. The order book is the full list of orders. Market depth is how much volume that list shows at each price level.

Does forex have an order book?

Spot forex has no single central exchange book. A Depth of Market window on a broker platform shows the liquidity that broker quotes.

Can I trust a large order I see in the book?

Not fully. Orders can be cancelled at any moment, hidden orders are not displayed, and some large orders are placed only to mislead.

Related pages