Register
Learn guide

Understand Order Book Depth and Execution

The order book is the list of all buy and sell orders waiting at each price for an instrument. The best bid and best ask set the price you can trade at now, the quantities behind them set how much you can trade before the price moves, and the way the book changes shows where buyers and sellers are active. This guide explains how the NSE order book works, how to read market depth, how orders are matched, what slippage and market impact are and how to use the book in a trading rule.

QuantPower Research · Updated 14 Nov 2026 · 17 min read

For a retail trader, the order book matters most at two moments: when an order goes in, and when a stop has to get out. A rule that ignores the book pays for it in small amounts on every trade, through spreads and slippage, and occasionally in a large amount, when a stop meets an empty book. The sections below start with what the book shows, then follow an order through matching, put rupee figures on spread and depth, and end with the rules that turn this into better fills in an automated strategy.

What the order book shows

Bid quantityBid priceAsk priceAsk quantity
1,950₹280.40₹280.501,300
3,250₹280.35₹280.552,600
2,600₹280.30₹280.604,550
5,200₹280.25₹280.653,900
4,550₹280.20₹280.706,500

This is a model depth view of a Nifty 25,000 call. The left side lists buyers: the best bid is ₹280.40, where buyers want 1,950 units, or 30 lots of 65. The right side lists sellers: the best ask is ₹280.50 for 1,300 units, or 20 lots. The gap between them, 10 paise, is the spread.

Brokers usually show the best five price levels on each side, which is called market depth. The exchange's full book runs much deeper, and some brokers and data vendors offer 20 levels.

The words you will meet

TermMeaning
BidThe highest price a buyer is waiting to pay
Ask, or offerThe lowest price a seller is waiting to accept
SpreadThe gap between the best bid and the best ask
DepthThe quantity waiting at and near the best prices
Tick sizeThe smallest step a price can move, such as 5 paise in index options
Last traded priceThe price of the most recent trade, which can be on either side of the spread
Total buy and sell quantityThe sum of all waiting orders on each side, shown by many terminals

A short history of the order book in India

Until the 1990s, Indian shares traded by open outcry on the floor of the Bombay Stock Exchange, where brokers shouted bids and offers and the "book" lived in their notebooks and memories. The National Stock Exchange began equity trading in November 1994 on a fully screen-based system, NEAT, which matched orders automatically by price and time.1 The BSE moved to its own screen-based system, BOLT, in 1995.2 For the first time, any member anywhere in the country saw the same book at the same moment, and the best price no longer depended on who was standing nearest.

The book has kept changing since. Equity derivatives arrived in 2000 and 2001, adding thousands of contracts with books of their own. Co-location, where members place servers inside the exchange's data centre, arrived around 2010 and turned the book into something machines read in microseconds. A call auction pre-open session, first introduced for stocks in 2010, set opening prices by collecting orders before matching starts.3 In December 2025 NSE extended pre-open to equity futures, and from 3 August 2026 it extended F&O trading to 3:40 pm alongside a closing auction in the cash market.4

Through all of it, the core rule has not changed: the best price goes first, and at the same price, the earliest order goes first.

How orders are matched

Order book depth chart of the Nifty 25,000 call, with a 3,250-unit market buy taking the two best ask levels (illustration)

NSE matches orders by price, then by time:

  1. The highest bid and the lowest ask are matched first.
  2. At the same price, the order that arrived first is filled first.
  3. An order that cannot be matched at once waits in the book at its price.

A market buy order takes the asks from the lowest price upward until it is filled. A limit buy order at ₹280.45 sits between the best bid and ask, becomes the new best bid, and waits for a seller to accept it.

Example
A market order to buy 3,250 units, or 50 lots, of the 25,000 call takes 1,300 units at ₹280.50, then 1,950 of the 2,600 at ₹280.55, and stops. The average price is about ₹280.53, three paise above the best ask. The same order in a strike with 130 units at each level would walk up many prices and pay far more.

Queue position

Time priority has a practical meaning for limit orders. If you join the best bid at ₹280.40 behind 1,950 units already waiting, your order fills only after those 1,950 units have traded, or after the orders ahead of you are cancelled. In a busy contract that may take seconds; in a quiet one it may never happen. A limit order one tick better than the best bid jumps the queue, at the cost of that tick.

What happens to modifications

Changing an order's price sends it to the back of the queue at its new price. Changing only its quantity downward usually keeps its place. This is one reason an algorithm that chases the price by modifying its order every second rarely fills sooner than one that places a sensible limit and waits.

Spread, depth and liquidity

  • The spread is the cost of immediacy. Buying at the ask and selling at the bid costs the spread, 10 paise per unit here, or ₹6.50 per lot of 65. In a far strike with a ₹3 spread, the same round trip costs ₹195 per lot.
  • Depth is the quantity available near the best prices. Deep books absorb large orders with little price movement.
  • Liquidity is both together: a tight spread and a deep book mean you can trade size at close to the quoted price. In index options, liquidity is highest near the at-the-money strike, in the nearest expiry, and in the first and last hours of the session.

What the spread costs over a month

Spreads look small per trade and add up over many trades. Consider a strategy that trades one lot of a Nifty option twice a day, entering and exiting each time, on 21 trading days.

StrikeTypical spreadCost per round trip, one lotRound trips a monthSpread cost a month
At the money₹0.10₹6.5042₹273
300 points out₹0.50₹32.5042₹1,365
Far out of the money₹3.00₹19542₹8,190

The rule did not change across the three rows; only the strike did. A strategy that buys cheap far-away options to "risk less" can pay more in spreads than in premium.

Slippage and market impact

Slippage is the difference between the price you expected and the price you got. It comes from the spread, from the book being walked by your own order, and from the price moving between your decision and your fill. Market impact is the part your own order causes.

For a retail order of a few lots in a liquid Nifty strike, slippage is usually a tick or two. For large orders, or in stock options and far strikes, it can be a significant share of the trade's expected profit. A slippage calculator estimates the cost from the depth, and iceberg orders split a large order into legs so that the full size never sits in the book.

A worked slippage example

You want to sell 20 lots (1,300 units) of a stock option whose book shows these bids:

Bid priceBid quantity
₹42.10300
₹42.00400
₹41.85250
₹41.70500

A market sell takes 300 at ₹42.10, 400 at ₹42.00, 250 at ₹41.85 and the remaining 350 at ₹41.70. The proceeds are 12,630 + 16,800 + 10,462.50 + 14,595 = ₹54,487.50, an average of about ₹41.91. Had the whole order filled at the best bid, it would have brought ₹54,730. The order cost itself ₹242.50 by walking the book, before any brokerage or tax. Splitting it into four orders of 325 units, placed as limits at the best bid a few seconds apart, would often recover most of that.

Three strikes, three different books

The same index, the same expiry and the same minute can show very different books a few strikes apart. A model snapshot of Nifty weekly calls with the index near 25,000:

StrikeBest bidBest askSpreadQuantity at best askLots at best ask
25,000 (at the money)₹120.40₹120.50₹0.104,55070
25,300₹38.20₹38.35₹0.151,95030
25,800₹4.10₹4.40₹0.303255

The spread at 25,800 looks small in rupees, ₹0.30, but it is about 7% of the option's price, against less than 0.1% at the money. A strategy that buys the 25,800 call and sells it later pays roughly 7% of its stake in spread alone on every round trip, before brokerage and tax. And an order for 10 lots at 25,800 is twice the quantity at the best ask, so it walks the book as well.

The lesson for a rule: measure liquidity as a share of the option's price, not in rupees, and compare the order size with the quantity at the best price. A strike that fails either test is usually better replaced by one closer to the money.

How the book behaves around events

The book is not the same all day or every day. Four moments change it most:

  • The open. In the first few minutes, market makers are still setting quotes, overnight orders are being absorbed and spreads are at their widest. Rules that enter at 9:15 exactly meet the thinnest book of the day.
  • Expiry day. Near-expiry options in the expiring contract trade very actively, and their prices move fast as time value disappears. Spreads stay tight near the money but depth can vanish in seconds when the index moves sharply, and strikes that were far away an hour ago can become the busiest.
  • Scheduled news. Before an RBI policy decision, a budget speech or a company's results, liquidity providers widen their quotes or step back. Books thin out just when many traders want to act.
  • The last half hour. Activity rises again as positions are closed, and with F&O trading extended to 3:40 pm from 3 August 2026, the busy period at the end of the day shifted with it.

A strategy that trades through these moments should allow more slippage then, or avoid entering at all.

A worked example of a limit buffer

You want to buy one lot of the 25,300 call from the table above. The best ask is ₹38.35 and the last traded price ₹38.30.

ChoiceOrderWhat usually happensCost per lot against the best ask
Market orderBuy at marketFills at once at ₹38.35 if 65 units are there₹0
Limit at the bidBuy at ₹38.20Joins the queue; may not fill if the price risesSaves ₹9.75 if filled
Limit at last price plus a bufferBuy at ₹38.30 + ₹0.10 = ₹38.40Fills at once at ₹38.35, the best available₹0, and never more than ₹3.25 worse
Modify until filledBuy at ₹38.20, then move to the last price after a few secondsOften fills in between, at ₹38.25 or ₹38.30Saves up to ₹6.50

For one lot in a liquid strike, the differences are small. For 20 lots, or in a thin strike, they are not. The buffer's real job is protection: a limit at "last price plus ₹0.10" fills like a market order when the book is normal, and refuses to fill at a silly price when it is not.

A liquidity checklist before trading a contract

  1. Spread as a share of price. Below about 1% for options you plan to trade often; below 0.1% is typical near the money in index options.
  2. Quantity at the best price. At least your order size, ideally several times it.
  3. Open interest and volume. A strike with little open interest and few trades today will have a thin book tomorrow too.
  4. Time of day. Not the first few minutes; not just before a scheduled announcement.
  5. Freeze quantity. If your order is larger than the exchange's freeze limit for the contract, it must be split.
  6. The exit. Check the bid side as well: the book you sell into later matters as much as the one you buy from now.

Reading the book for information

Traders read the order book for signs of where buyers and sellers are:

  • Imbalance. Far more quantity on the bid side than the ask suggests buying pressure, though large visible orders can be placed to influence others and then cancelled.
  • Large orders at a price. A big ask at a round number is a level where sellers are waiting; price often slows there.
  • Changes in depth. Orders being pulled from the ask side as price rises suggest sellers stepping back.
  • The tape. The sequence of trades at the bid or the ask shows whether buyers or sellers are hitting the market.

These readings are short-lived and noisy. High-frequency firms read the book in microseconds, and a retail trader sees it with a delay of a few hundred milliseconds or more. For retail strategies, the book is more useful for execution than for prediction.

Visible orders that disappear

Exchanges and SEBI treat placing orders with no intention of trading, to mislead others about supply or demand, as manipulation. That does not stop large orders from appearing and vanishing for ordinary reasons: a trader changes their mind, an algorithm updates its quote as the price moves, or an iceberg order shows only a part of its size. Treat any single large order as a hint, never as a fact.

Total buy and sell quantity

Many terminals show the total quantity waiting on each side of the whole book, not only the best five levels. It is tempting to read a large total buy quantity as bullish. Be careful: the totals include orders far from the market that may never trade, they change as orders are cancelled, and in options a large total on one side often reflects market makers quoting both sides rather than any view on direction. The totals are most useful for spotting a change, such as the buy side shrinking quickly while the price holds, not as a level to trade on.

The order book and backtests

Most backtests never see the order book. They use candles, which record the open, high, low and close of each period, and fill orders at those prices. That has three consequences:

  1. The spread is invisible. A candle's close may be a trade at the bid or at the ask. A backtest that buys and sells at the close assumes you crossed the spread for free.
  2. Depth is invisible. A backtest fills 50 lots as easily as one.
  3. Queue position is invisible. A limit order in a backtest fills when the price touches it; in the market it may sit behind thousands of units.

The fix is not to abandon backtests but to price these costs in. Set a slippage allowance per side that reflects the spread of the contract you will actually trade, test the rule again with double that allowance, and check that it still works. Then run a forward test on live prices, where the real spread and real fills appear, before any real money is involved. If the forward test is much worse than the backtest, the gap is usually the book.

The pre-open session and the opening price

For stocks, orders placed in the pre-open window from 9:00 to 9:08 am are collected without matching, and the exchange computes the opening price at which the most quantity can be matched. The indicative price moves as orders arrive. Since 8 December 2025, NSE also runs a pre-open session for equity futures.4 The first minutes after continuous trading starts at 9:15 often have wide spreads and thin books, while overnight orders are absorbed and market makers set their quotes.

Circuit limits and price bands

Stocks have daily price bands, commonly 2%, 5%, 10% or 20%, beyond which orders are not accepted. When a stock hits its band, the book on one side empties. F&O contracts have operating ranges that are revised during the day rather than hard limits, and the index market as a whole has market-wide circuit breakers at 10%, 15% and 20% moves that halt trading for set periods.5 For an automated strategy, a band or a halt means an exit that cannot be filled: size positions so that a stop which cannot execute for a while does not threaten the account.

Using the order book in a rule-based strategy

  • Execution rules. Place entries as limit orders at or one tick through the best price, rather than market orders, so that the strategy pays the spread but not the depth. Our guide to order types explains the choices.
  • Liquidity filters. Trade only strikes where the spread is below a threshold and the depth at the best price covers the order size.
  • Size limits. Cap an order at a share of the visible depth, such as 20%, and use iceberg legs above it.
  • Time filters. Avoid the first few minutes after the open, when books are thin and spreads wide.
  • Exits that always fill. Exits are best sent as market orders that can only reduce the position, so that a stop is never left waiting at a limit price while the market runs.
  • Leg order. In a spread, buy the hedge before selling the short leg, so that a rejected or unfilled sale never leaves a naked position.

Common mistakes

  • Using market orders for entries in thin contracts. The order walks the book, and the fill is several ticks away from the screen price.
  • Chasing with modifications. Each price change sends the order to the back of the queue.
  • Ignoring the spread in backtests. A backtest that fills at the last price assumes the spread is zero. Add a slippage allowance per side.
  • Trading far strikes for cheapness. Wide spreads can cost more than the premium saved.
  • Reading one big order as a signal. It may be gone in a second.
  • Forgetting the first minutes. Rules that fire at 9:15 meet the thinnest books of the day.

Where order books are going

Three trends shape the book a retail trader sees. Exchanges keep adjusting trading hours and sessions, with pre-open sessions spreading to futures and closing auctions arriving in the cash market, so the open and the close are becoming more structured.4 Expiry and contract changes since 2024, such as one weekly expiry per exchange and larger lot sizes, concentrate liquidity in fewer contracts.6 And retail algorithms now run under SEBI's framework, with each order tagged to its strategy, so the share of the book driven by rules rather than clicks keeps growing.7 For a rule-based trader, the practical effect is the same: execution rules that respect the book are worth more each year. The traders who gain from these changes are the ones who measure their own fills, compare them with the screen price, and adjust their buffers and sizes from that record rather than from habit.

The order book in QuantPower

QuantPower shows five levels of market depth on each instrument's screen, with the quantity at each price and the totals on each side, from your connected broker's feed.8 The order sheet shows a margin preview before you send. Algos follow the execution rules above by design:

RuleHow it works in an algo
Limit entriesEach leg can enter at market, at a fixed limit, at the last price plus or minus a buffer, as a stop-limit, or with "modify until filled", which moves the price to the last price after a set number of seconds, up to 10 times, then cancels or sends at market as you choose
Leg orderBuy legs go first; sell legs go only after the buys are filled. On exit, sold legs are bought back first
ExitsMarket orders that only reduce the position and can never open a new one
Large ordersAn iceberg order splits one order into 2 to 50 legs, sent one at a time; an order above the exchange's freeze quantity is split automatically
RejectionsA refused entry closes the legs already in and stops the algo with the reason; a refused exit is tried again up to 8 times

Charts, depth and the option chain are free. An algo costs 200 tokens per 28 days live, or 100 in Forward test.

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

What does market depth show?

The quantities of buy and sell orders waiting at each price level, usually shown for the best five levels on each side, with the totals on each side.

Why did my order fill at a worse price than the screen showed?

Your order was larger than the quantity at the best price, or the price moved before the order arrived. Both are slippage. Limit orders cap the price you pay.

Can I see the full NSE order book?

Brokers usually show five levels. Twenty-level depth is available from some brokers and data vendors; the exchange's full book is not shown to retail traders.

Does a large order in the book mean the price will stop there?

Sometimes. Large visible orders can also be placed to influence other traders and withdrawn before they fill, which exchanges treat as manipulation when done deliberately.

Why does my limit order at the best bid not fill?

It is in a queue. Orders at the same price fill in the order they arrived, so every order ahead of yours must trade or be cancelled first. A price one tick better moves you to the front.

Should an algo use market orders or limit orders?

Limit orders with a small buffer for entries, where saving the spread matters, and market orders that only reduce the position for exits, where getting out matters more than the price.

Is the spread the same for buyers and sellers?

Yes. The spread is one gap between the best bid and the best ask, and anyone who wants to trade at once pays it: a buyer pays the ask, a seller receives the bid. Over a round trip you cross it once, whichever side you start on. A trader who waits with limit orders on both sides can earn part of it instead, at the risk of not being filled.

How do I know if a contract is liquid enough for my order?

Compare your order with the quantity at the best price and the spread with the option's price. If your order is larger than the best level, or the spread is more than about 1% of the price, expect slippage and consider a closer strike or a smaller order.

References

  1. National Stock Exchange of India, "About NSE: history" (nseindia.com)
  2. BSE Ltd., "About BSE: history and milestones" (bseindia.com)
  3. SEBI, circular on the call auction in the pre-open session, 2010 (sebi.gov.in)
  4. NSE, circulars on the pre-open session for equity futures (from 8 December 2025) and on F&O trading hours to 3:40 pm with a closing auction in the cash market (from 3 August 2026) (nseindia.com)
  5. SEBI, circular on index-based market-wide circuit breakers, and NSE's price band framework (sebi.gov.in)
  6. SEBI, circular "Measures to strengthen Equity Index Derivatives framework", 1 October 2024 (sebi.gov.in)
  7. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025 (sebi.gov.in)
  8. QuantPower: depth view, entry order types, leg order, iceberg and exit rules, from the app's code, checked 12 November 2026
The depth shown on this page is a model example. Trading involves substantial risk; this page is for education and is not investment advice.