Market Structure

What is Order Book?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionThe order book is the live list of buy orders (bids) and sell orders (asks) waiting at each price for an instrument, with the quantity at each level. If a Nifty option shows a best bid of ₹119.50 for 130 units and a best ask of ₹120.50 for 65, a market buy for 195 units fills only 65 at ₹120.50 and the rest at higher prices (illustrative).
Formula
Spread = Best ask − Best bid; Top-of-book imbalance = (Bid qty − Ask qty) ÷ (Bid qty + Ask qty), at the best level
Example
₹120.50 − ₹119.50 = ₹1.00 spread; (130 − 65) ÷ (130 + 65) = 0.33
PriceQtyYour orderAsk ₹122.00130not reachedAsk ₹121.5065filled 65Ask ₹121.0065filled 65Ask ₹120.5065filled 65Last price ₹120.00 (expected)Bid ₹119.50130Bid ₹119.00195MARKET BUY · 3 LOTS (195)Expected price₹120.00Average fill₹121.00Slippage per unit₹1.00Total slippage₹195₹1.00 × 195 units
Figure 1. Illustrative thin book on a Nifty option. Asks: 65 at ₹120.50, 65 at ₹121.00, 65 at ₹121.50, 130 at ₹122.00. Bids: 130 at ₹119.50, 195 at ₹119.00. A market buy of 3 lots (195 units), with the last price at ₹120.00, averages ₹121.00: ₹195 of slippage.

Reading market depth

Trading apps show the book as market depth: bids on one side, highest first, and asks on the other, lowest first. The gap between the best bid and best ask is the spread. Every order that is not filled at once lands here, so the book is a snapshot of all the limit orders still waiting. A market order never rests in the book: it takes whatever is on the other side, starting at the best price. Here is a five-level view for a liquid large-cap stock trading near ₹1,500.

Bid qtyBid (₹)Ask (₹)Ask qty
1,2001,499.901,500.00900
8001,499.801,500.101,500
2,5001,499.701,500.20700
6001,499.601,500.302,000
3,0001,499.501,500.401,800
8,100 total6,900 total
Spread
₹0.10
Bid qty, 5 levels
8,100
Ask qty, 5 levels
6,900
Imbalance, 5 levels
+0.08

Imbalance over the five levels is (8,100 − 6,900) ÷ (8,100 + 6,900) = 1,200 ÷ 15,000 = +0.08: slightly more waiting to buy than to sell, close to balanced. At the best level alone it is (1,200 − 900) ÷ 2,100 = +0.14. Readings like these change many times a minute, so they describe the moment, not the next move. The spread of ₹0.10 on a ₹1,500 stock is under 0.01% of the price, which is what a liquid name looks like.

Worked example: walking the book

A market buy for 2,000 shares in the stock above takes all 900 at ₹1,500.00 and 1,100 of the 1,500 at ₹1,500.10. Cost: ₹13,50,000 + ₹16,50,110 = ₹30,00,110, an average of ₹1,500.055. That is ₹0.055 a share, or ₹110 in total, above the best ask, before charges.

In the thin option book of Figure 1, a much smaller order paid ₹195 of slippage on ₹23,400 of premium (195 units × ₹120.00). Depth, not the headline price, decides what a market order really costs. That ₹195 is 0.83% of the premium paid, against 0.004% (₹110 on ₹30,00,110) in the liquid stock. Exits cost the same way: selling into the same thin book means hitting bids at ₹119.50 and ₹119.00, so a round trip can lose a few rupees per unit before the option moves at all.

What the book does not tell you

  • Orders are matched by price first, then time. Joining a long queue at the best bid means waiting behind everyone already there.
  • Displayed size is not a promise. Orders can be changed or cancelled at any moment, so a large bid can vanish just before price reaches it.
  • Some orders show only part of their size (a disclosed-quantity order), so the real quantity at a level can be larger than shown.
  • Total buy and total sell quantity, shown by many apps for the whole book, include orders far from the price and say little about the next move.

Order book vs order flow

Order book

Resting limit orders: what participants say they are willing to do at each price, right now.
Shows: intentions

Order flow

Executed trades and how aggressively they hit the bid or lifted the ask, plus changes in the book over time.
Shows: actions
For traders in India
Retail platforms on NSE typically show the top five price levels on each side; some brokers offer deeper views. F&O quantities are in multiples of the lot size, so 65 units is one Nifty lot (check the current NSE circular, as lot sizes are revised periodically). Orders priced outside a stock’s price band or the exchange’s limits are rejected, whatever the book shows.
Rule of thumb
Before a market order, compare your quantity with the size at the best price. If it is larger, use a limit order or split the order. Log the quoted price and the average fill in your journal, then total the gap each month. If one contract or time of day accounts for most of it, that is the place to change how you enter.

Reference guide

ContextValueReading
Your order smaller than the quantity at the best priceFills at the quoteSlippage limited to the spread
Your order larger than several levels combinedWalks the bookAverage fill moves away from the quote; split it or use limits
A large bid read as a floor under priceWeak signalResting orders can be cancelled in an instant

Questions

What is an order book in the stock market?

A live list of all pending buy and sell limit orders for an instrument, grouped by price. It shows the best bid, the best ask and how much quantity waits at each level.

What is market depth on NSE?

The view of the order book in your trading app, typically the best five bid and ask levels with their quantities. Some brokers offer deeper views of more levels.

Does a large buy quantity mean the price will rise?

Not on its own. Resting orders can be cancelled at any time, and total buy quantity includes orders far from the price. Executed trades say more about what participants are actually doing.

How is the bid-ask spread calculated from the order book?

Best ask minus best bid. With ₹1,500.00 ask and ₹1,499.90 bid the spread is ₹0.10; as a share of the price it is under 0.01%.

Why did my market order fill at a worse price than shown?

Your order was larger than the quantity at the best price, or the book changed before it arrived, so it filled at the next levels. That gap is slippage.

Related terms