Discover how an order becomes a trade, and why exchanges matter.
Beginner friendly · Interactive lesson
Learning objectives
What you will learn
✓ A marketplace, not a shop
✓ The order book
✓ From execution to settlement
01 / Core concept
A marketplace, not a shop
An exchange operates a marketplace where eligible securities are traded under defined rules. NSE and BSE are Indian exchanges. Your broker connects you to the market; the exchange does not normally sell you shares from its own inventory.
Concept illustration · simplified for learning
02 / Core concept
The order book
Buy orders express demand at particular prices; sell orders express supply. The highest bid and lowest ask form the best quoted prices. Matching depends on exchange rules, typically price and time priority. A quoted price is not a promise that your entire order will execute there.
Concept illustration · simplified for learning
03 / Core concept
From execution to settlement
Execution creates a trade obligation. Clearing and settlement arrange the exchange of funds and securities. Your broker and depository participant provide account records. Settlement cycles vary by segment and applicable rules; verify the current cycle before trading.
Concept illustration · simplified for learning
04 / Interactive lab
Explore the numbers
Quoted spread (₹)
A positive spread is the gap between the best ask and bid. A negative result represents inconsistent simultaneous quotes in this simplified example.
05 / Knowledge check
Test your understanding
What does the exchange primarily provide?
Select an answer.
Key takeaways
A marketplace, not a shop: An exchange operates a marketplace where eligible securities are traded under defined rules.
The order book: Buy orders express demand at particular prices; sell orders express supply.
From execution to settlement: Execution creates a trade obligation.
Further reading & source credits
Original educational explanations and synthetic examples. Further reading: SEBI Investor Education · NSE.
Before you begin: Understand bids, asks, quantity and the ownership role of a share.
Read a simple order book
Calculate a multi-level fill
Distinguish execution from settlement
Mechanism and interpretation
An order book contains intentions to trade, not completed trades. An aggressive buy can consume the cheapest available sell orders, progressing to higher prices if its quantity exceeds available depth. A passive buy waits at its limit and competes with other buyers. Under price-time priority, better prices precede worse prices and earlier orders at an equal price precede later ones. Displayed depth can change before your order arrives; a screenshot does not reserve liquidity.
Worked case — synthetic data
Synthetic asks show 30 shares at ₹101 and 50 at ₹102. A buy for 60 shares that reaches this unchanged book fills 30 at each price: (30×101 + 30×102)/60 = ₹101.50 average. If the best bid is ₹100, the initial quoted spread was ₹1, but the average purchase was ₹1.50 above that bid. Execution gives a trade record; clearing calculates obligations and settlement completes the exchange of assets.
Context and failure modes
A limit at ₹101 prevents paying ₹102 but can leave half the order unfilled. Trading halts, cancellations and queue changes are reasons the simplified fill may differ. Check the relevant venue and segment rules before applying any matching assumption.
Practice task
Using the same book, determine the fill and remaining quantity of a 70-share buy limit at ₹101, assuming no new orders arrive.
Worked practice answer
Thirty shares fill at ₹101 and 40 remain unfilled. The higher-priced ask cannot satisfy this limit. Whether the remainder stays or cancels depends on the order's time condition.
Topic assessment
Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.
1. What does displayed ask quantity represent?
Trades already settled
Available sell interest at the displayed prices at that moment
Shares guaranteed to remain available
Reveal answer and explanation
B. Orders can be cancelled or filled before your order reaches the book.
2. Which order normally has priority at an identical price under price-time matching?
The larger retail order
The order with a higher profit target
The earlier eligible order
Reveal answer and explanation
C. Time priority applies after price priority; order size is not the criterion in this rule.
3. Why can average fill exceed the best ask?
The order consumes multiple price levels
Settlement adds shares to the order
The last price must always be paid
Reveal answer and explanation
A. The best ask covers only its available size, not an unlimited quantity.
Inspect actual provider-hosted market prices or load your own historical OHLCV in the Market Chart Lab. For volume-at-price and bid/ask analysis, use the profile workbench with appropriate data. These are exploration tools, not verified historical examples of this specific lesson.
Source scope
The explanations, definitions used for chart labels, synthetic cases, and exercises above are original. Exchange documentation is a reference for order mechanics; it does not validate a chart strategy or identify trader intent. Indicator documentation provides formula context where applicable.