Open to read. This in-depth guide is part of the member library — a subscription unlocks all guides plus the AI trade journal.
Why this matters
You see Infosys at Rs 1,500 on your screen and place a market order to buy 1,000 shares. When the order executes, your average price is Rs 1,503. Those extra Rs 3 per share cost you Rs 3,000 — and that happened because you did not check market depth before placing the order. The order book had only 200 shares at Rs 1,500, so your remaining 800 shares were filled at progressively higher prices. Understanding market depth is the difference between a professional trader who controls execution cost and a retail trader who bleeds money on every trade without knowing why.
What is the Order Book?
The order book is a real-time list of all pending buy and sell orders for a stock at various price levels. Every order you or anyone places goes into this book. When a buyer's price meets a seller's price, a trade happens.
Market Depth (Level 2 Data)
NSE shows the best 5 buy orders (bids) and best 5 sell orders (asks) for every stock. This is called "market depth" or "Level 2 data." It shows you EXACTLY how many shares are available at each price level.
Bid-Ask Spread
The gap between the highest buyer's price (best bid) and lowest seller's price (best ask). Tight spread (Rs 0.05) = liquid stock. Wide spread (Rs 2-5) = illiquid stock. You pay the spread on every trade.
Impact Cost
The price slippage you experience when placing a large order. If you want to buy 10,000 shares but only 2,000 are at the best ask, the rest fills at higher prices. Impact cost = how much your large order moves the price.
Best 5 Bids & Asks
NSE provides 5 price levels on each side. Bid side: highest price buyers are willing to pay (descending). Ask side: lowest price sellers are willing to accept (ascending). The top of each side = "best bid" and "best ask."
Order Book is Dynamic
The order book changes every millisecond. Orders are placed, modified, and cancelled constantly. What you see is a snapshot. By the time you react, quantities may have changed. Speed matters.
Section 1: Anatomy of the Order Book
Every stock listed on NSE (and BSE) has an electronic order book maintained by the exchange. When you place an order through Zerodha, Groww, or any broker, your order goes into this central book. The exchange's matching engine continuously scans the book and matches buy orders with sell orders at compatible prices.
Order Book — Reliance Industries
Best 5 Bids (Buyers) & Asks (Sellers)
Reading the Bid Side (Left)
The bid side shows pending buy orders — people waiting to buy. The best bid (highest price) is at the top. In our example, someone is willing to buy 4,250 shares at Rs 2,945.50. Below that, 3,100 shares are waiting at Rs 2,945.40, and so on. The total bid quantity (12,550 shares) tells you how much buying demand exists in the visible order book.
If you want to sell shares, your market order will be matched against these bids starting from the best bid (highest price). Selling 4,250 shares would get you Rs 2,945.50. Selling 7,350 shares (4,250 + 3,100) would get an average of about Rs 2,945.46 — the first 4,250 at Rs 2,945.50 and the next 3,100 at Rs 2,945.40.
Reading the Ask Side (Right)
The ask side shows pending sell orders — people waiting to sell. The best ask (lowest price) is at the top. In our example, 3,800 shares are available at Rs 2,945.60. If you want to buy, your market order fills against these asks starting from the lowest. The total ask quantity (14,200 shares) shows available selling supply.
The Bid-Ask Spread
The spread is the gap between the best bid and best ask. In our example: Rs 2,945.60 - Rs 2,945.50 = Rs 0.10. This Rs 0.10 is the "cost of immediacy" — if you want to buy RIGHT NOW, you pay the ask (Rs 2,945.60). If you want to sell RIGHT NOW, you get the bid (Rs 2,945.50). The spread is effectively a hidden trading cost you pay on every market order.
Spread as a Liquidity Indicator: Reliance, HDFC Bank, and Infosys typically have spreads of Rs 0.05-0.10 (0.002-0.005%). Small-cap stocks can have spreads of Rs 1-5 (0.5-2%). If you trade a stock with a Rs 3 spread and make 4 round trips per day, you are paying Rs 24 per share in spread costs alone — before brokerage and STT. Wide spreads kill intraday trading profitability.
Section 2: Understanding Impact Cost
Impact cost is perhaps the most underappreciated concept in trading. It measures how much the price moves against you when you place an order that is larger than the quantity available at the best price. Professional traders obsess over impact cost — retail traders usually do not even know it exists.
How to Calculate Impact Cost
Using our Reliance example: Suppose you want to buy 10,000 shares with a market order. The order book has:
- 3,800 shares at Rs 2,945.60 (filled first)
- 2,900 shares at Rs 2,945.70 (filled second)
- 2,200 shares at Rs 2,945.80 (filled third)
- 1,100 shares at Rs 2,945.90 (partially filled — need only 1,100 out of 3,500)
Your average buy price = (3,800 x 2,945.60 + 2,900 x 2,945.70 + 2,200 x 2,945.80 + 1,100 x 2,945.90) / 10,000 = approximately Rs 2,945.72.
The ideal price (midpoint of best bid and ask) = (2,945.50 + 2,945.60) / 2 = Rs 2,945.55.
Impact cost = (2,945.72 - 2,945.55) / 2,945.55 x 100 = 0.0058%
For a highly liquid stock like Reliance, 0.006% impact cost on a 10,000 share order is excellent. For a small-cap stock, the same quantity might give you 0.5-2% impact cost — meaning you lose Rs 15-60 per share just on execution slippage.
NSE uses impact cost for index inclusion: To be included in the Nifty 50 or Nifty Next 50, a stock must have an impact cost below 0.50% for a Rs 10 crore order size. This ensures index stocks are liquid enough for institutional trading. If you stick to Nifty 200 stocks, impact cost is rarely a concern for retail-sized orders.
Section 3: Thin vs Thick Order Books
The "thickness" of an order book refers to how many shares are available at and near the best bid/ask prices. A thick order book absorbs large orders without significant price movement. A thin order book means even small orders can cause wild price swings.
Thick Order Book (Liquid)
- Large quantities at each price level (10,000+ shares)
- Tight bid-ask spread (Rs 0.05-0.20)
- Low impact cost for large orders
- Smooth price movement, no sudden gaps
- Examples: Reliance, TCS, HDFC Bank, Infosys
- Best for: All traders, especially intraday and scalpers
Thin Order Book (Illiquid)
- Small quantities at each level (50-500 shares)
- Wide bid-ask spread (Rs 1-10+)
- High impact cost — small orders move price
- Prone to gaps, operator manipulation
- Examples: Small-cap stocks, low-volume options
- Risk: Getting trapped — you cannot exit at desired price
Why Thin Order Books Are Dangerous
Imagine you buy 5,000 shares of a small-cap stock at Rs 120. The order book is thin — only 500 shares at each price level on the bid side. When you try to sell 5,000 shares, the first 500 execute at Rs 120, the next 500 at Rs 119.50, then Rs 119, then Rs 118.50... by the time you sell all 5,000, your average sell price is Rs 118 — a Rs 2 loss per share on execution alone. In an illiquid stock during a panic, the order book can evaporate entirely, with no buyers at reasonable prices.
This is why professional traders always check market depth before entering a position, especially in smaller stocks. The rule of thumb: if you cannot exit your entire position within 2-3 price levels on the bid side without losing more than 0.5%, the stock is too illiquid for your order size.
Section 4: How to Use Market Depth Before Placing Orders
Market depth should be part of your pre-trade checklist, especially for large orders or less liquid stocks. Here is how to use it effectively:
Step 1: Check the Spread
Before placing any order, glance at the bid-ask spread. If the spread is tight (under 0.1% of stock price), a market order is fine. If the spread is wide (above 0.3%), always use a limit order to avoid paying the full spread.
Step 2: Check Quantity at Best Price
If you want to buy 1,000 shares and only 200 are available at the best ask, your market order will slip. Either place a limit order at the best ask (and wait for fills) or check if the next 2-3 price levels have enough quantity for an acceptable average price.
Step 3: Compare Bid vs Ask Totals
If total bid quantity (12,550) is much higher than total ask quantity (5,000), buyers outnumber sellers — short-term bullish pressure. If total ask (14,200) far exceeds total bid (3,000), selling pressure dominates. This is a quick-and-dirty sentiment indicator. However, be cautious — large orders can be placed and cancelled in milliseconds (spoofing), so do not rely on this exclusively.
Step 4: Use Limit Orders in Illiquid Stocks
For any stock where the spread exceeds Rs 0.50 or where your order size exceeds 50% of the quantity at the best price, ALWAYS use a limit order. Place your limit at or slightly above the current ask (for buying) or at or slightly below the current bid (for selling). This protects you from slippage.
Step 5: Check Depth Before Large F&O Orders
Options contracts, especially far OTM (out-of-the-money) options, can have extremely thin order books. Before buying 50 lots of a Nifty 18000 CE with 2 days to expiry, check if there is enough open interest and bid quantity to allow you to exit at a reasonable price. Many options traders get stuck in positions they cannot exit because the order book disappeared.
Section 5: Advanced Order Book Concepts
Order Book Imbalance
When bid quantity significantly exceeds ask quantity (or vice versa), it creates an "imbalance." Quantitative traders use imbalance ratios to predict short-term price direction. A simple formula: Imbalance = (Bid Qty - Ask Qty) / (Bid Qty + Ask Qty). Positive imbalance = more buyers = short-term bullish. Negative = more sellers = bearish. This signal works best in the first 30 minutes of trading.
Iceberg Orders
Large institutional orders are often hidden using "iceberg" or "disclosed quantity" orders. NSE allows you to show only a portion of your total order in the order book. An institution wanting to buy 1 lakh shares might show only 5,000 at a time. When 5,000 are filled, the next 5,000 appear automatically. This is why the visible order book does not always reflect true supply and demand — large players are hiding their full intentions.
VWAP and Order Execution
Volume Weighted Average Price (VWAP) is used by institutions to evaluate execution quality. If you buy shares at an average price below VWAP, you got a better-than-average execution. If above VWAP, you overpaid relative to the day's average. Institutional traders are evaluated on how close their execution was to VWAP — their bonus depends on it.
Section 6: Common Mistakes
Using Market Orders in Illiquid Stocks
A market order in a stock with a Rs 5 spread means you are paying Rs 5 extra per share for the privilege of instant execution. In a Rs 100 stock, that is 5% gone before the stock even moves. Always use limit orders.
Ignoring Depth Before Large Orders
Placing a 10,000-share order when only 500 are at the best price guarantees terrible execution. Check depth, split large orders into smaller chunks, or use iceberg orders if your broker supports them.
Treating Order Book as Gospel
The order book changes constantly. Orders can be placed and cancelled in milliseconds. Some traders deliberately place large orders to create false impressions (spoofing). Use depth as a guide, not a guarantee.
Trading Deep OTM Options Without Checking Depth
Deep out-of-the-money options often have zero or 1-2 lots in the order book. You might buy at Rs 5 and find no buyers when you want to sell. Check open interest AND order book depth for options.
Panic Market Orders During Volatile Events
During results, budget, or RBI announcements, order books thin out dramatically. A market sell order during such events can execute 2-5% below the last traded price. Use limit orders during events, even if you want to exit fast.
Not Factoring Spread into P&L
If the spread is Rs 0.50, you pay Rs 0.50 to enter AND Rs 0.50 to exit = Rs 1 total spread cost per share. For a trader making 10 round trips/day in 500 shares, that is Rs 5,000/day = Rs 1.1 lakh/month in hidden spread costs.
Practice Exercise
Open your broker's trading terminal. Pull up market depth for three stocks: one large-cap (Reliance or TCS), one mid-cap (any stock you trade), and one small-cap. Compare the bid-ask spread, total bid vs ask quantities, and number of orders at the best price. For each stock, calculate: if you placed a market order for 1,000 shares, what would be your approximate average execution price vs the last traded price?
Then check the same three stocks during the first 15 minutes of market opening vs at 1 PM. Notice how depth changes throughout the day. Opening minutes typically have wider spreads and thinner books. The 1-2 PM window usually has the tightest spreads and deepest books. Understanding this daily rhythm improves your execution quality significantly.
Key Takeaways
- Market depth shows the best 5 buy and sell orders. It tells you the REAL supply and demand at each price level.
- The bid-ask spread is a hidden trading cost. Tight spread = liquid and cheap to trade. Wide spread = expensive.
- Impact cost measures how much a large order moves the price against you. Always check depth before large orders.
- In illiquid stocks (wide spread, thin order book), always use limit orders. Market orders in illiquid stocks guarantee bad execution.
- Compare total bid vs ask quantities for quick sentiment reading — but do not rely on it exclusively due to spoofing.
- Order books are especially thin during volatile events (results, budget, RBI policy). Use limit orders during high-impact events.
- For options traders: check open interest AND order book depth before entering, especially for deep OTM options.
Your progress
0 read in Market Microstructure
Ready to apply this?
Put what you learned about market depth explained: how to read the nse order book into practice. ArthaLearn helps you log trades, detect behavioral patterns, and improve consistently — backed by AI.
Free forever for trade logging. AI features start at ₹599/month.