Stock market foundationsModule 3, lesson 11 of 29
How stock exchanges work
What a stock exchange like NSE or BSE actually does, how buy and sell orders are matched, when the market is open, and how a trade settles in India.
In this lesson
- Describe the four jobs of a stock exchange.
- Explain how an exchange matches orders by price and then by time.
- Describe the trading day on Indian exchanges, including the pre-open session.
- Explain what settlement is and how settlement cycles such as T+1 are written.
Builds on
- What is the stock market?You need the big picture of the market before looking at how its central marketplace works.
On this page
In simple terms
A stock exchange is an organised marketplace where shares of listed companies are bought and sold. In India the two main exchanges are the National Stock Exchange (NSE) and BSE. Today they are entirely electronic: there is no trading floor, only computers matching orders sent from brokers' systems all over the country.
An exchange does four main jobs.
- Lists companies. A company must meet the exchange's requirements and agree to its disclosure rules before its shares can trade there. This is called listing.
- Provides the marketplace. It runs the system where buy and sell orders meet, with the same rules for everyone.
- Matches orders and publishes prices. It matches buyers with sellers and shows the prices and quantities traded, so everyone sees the same information.
- Supervises trading. It watches for unusual activity and enforces its rules, under the oversight of SEBI.
An exchange does not set share prices and does not buy or sell shares itself. Prices come from what buyers and sellers are willing to do.
How orders are matched
When you place an order through a broker's app, it is sent to the exchange and joins the order book for that share: a live list of every waiting buy order and sell order with its price and quantity.
The exchange matches orders using price-time priority:
- Price first. The buyer willing to pay the most and the seller willing to accept the least are matched first.
- Then time. If two orders have the same price, the one that arrived first is matched first.
Worked example: Matching a new sell order
The order book for a made-up company, Tapti Fabrics Ltd, holds these buy orders.
| Buyer | Price | Quantity | Time placed |
|---|---|---|---|
| A | ₹150.00 | 100 shares | 10:02 |
| B | ₹150.00 | 200 shares | 10:05 |
| C | ₹149.50 | 500 shares | 09:58 |
At 10:10 a seller sends an order to sell 250 shares and will accept anything down to ₹149.50.
- A and B offer the best price, ₹150. A arrived first, so A gets 100 shares at ₹150.
- B gets the next 150 shares at ₹150. B's remaining 50 shares stay in the order book.
- C's lower price means C gets nothing this time, even though C's order is the oldest.
You will see how to choose the price on your own orders in Market and limit orders.
The trading day
Each trading day begins with a short pre-open session: a call auction in which orders are collected and a single opening price is worked out from them, which reduces wild swings in the first minutes. Normal continuous trading follows until the market closes. The exchanges publish their trading hours and holiday calendars, and can change them.
Settlement: when the shares are really yours
When your order is matched, the trade has happened, but the shares and money have not yet moved. Settlement is the process of actually transferring the shares into the buyer's demat account and the money to the seller.
Settlement is handled by a clearing corporation attached to the exchange. It stands between buyer and seller and guarantees that the trade will be completed, so you do not need to worry about whether the stranger on the other side will pay or deliver.
Settlement happens a set number of working days after the trade date, written T+1, T+2 and so on, where T is the day of the trade. The settlement cycle is set by SEBI and the exchanges, and it has become shorter over the years as systems have improved. With a T+1 cycle, for example, shares you buy on Monday normally reach your demat account on Tuesday.
Why it matters
Knowing how an exchange works answers questions that puzzle many new investors. Why did my order not go through? Probably because no seller would accept your price. Why did I get a slightly different price from the one on the screen? Because the screen showed the last trade, and the next available seller wanted more. Why are shares I bought today not yet showing in my demat account? Because the trade has not settled yet.
It also explains why trading on a recognised exchange is safer than dealing privately. Everyone trades under the same rules, prices are public, and the clearing corporation guarantees that trades are completed.
Limitations
This lesson describes the normal cash (or "equity") market. Exchanges also run separate segments for derivatives, currencies and bonds, with their own timings and rules. Trading can also be paused: exchanges set price bands for many shares and can halt trading in a share or the whole market under certain conditions.
Exact timings, holidays and settlement details are set by the exchanges and SEBI and can change, so check the exchanges' own websites for the current ones.
Common mistakes
- "The exchange decides the price." The exchange only matches orders. Prices come from what buyers and sellers agree.
- "The last traded price is the price I will get." Your order is matched against whatever orders are waiting when it arrives, which can differ from the last trade.
- "A bigger order gets priority." Priority is by price, then time, not by size.
- "Shares bought today are in my demat account today." They arrive after settlement, a set number of working days after the trade.
Try it yourself
Open any broker app or the NSE website and look at a large company's share during market hours.
- Find the last traded price, the best buy price (bid) and the best sell price (ask).
- Note the time. Check again 15 minutes later and see how all three changed.
- Before normal trading starts on a trading day, look at the same screen during the pre-open session and find the opening price being worked out.
You are not placing any order. The aim is to see the order book and the trading day for yourself.
Key takeaways
- A stock exchange runs the marketplace, sets trading rules, matches orders and publishes prices. It does not decide what a share is worth.
- Orders are matched by best price first and, at the same price, by whichever order arrived first.
- Each trading day starts with a short pre-open session that sets the opening price, followed by normal continuous trading until the close.
- A trade is settled when shares and money actually change hands, a set number of working days after the trade, written T+1, T+2 and so on.
Check your understanding
Finished reading?
Your progress is saved only in this browser.
Terms used in this lesson
- Stock exchange
- An organised marketplace that lists companies' shares and matches buy and sell orders under common rules.
- Order book
- The live list of all waiting buy and sell orders for a share, with their prices and quantities.
- Settlement
- The process of actually delivering shares to the buyer and money to the seller after a trade, a set number of working days later.
- Listing
- The admission of a company's shares to trading on a stock exchange, which brings ongoing disclosure obligations.
References
- Equity market pre-open session, National Stock Exchange of India. How the pre-open session works, with the exchange's current timings.
Spotted a mistake or something unclear? Report it by email. Here is how corrections work.
This lesson is general education, not investment advice. Examples use made-up or clearly dated figures to explain ideas; they are not recommendations. Read the disclaimer.