LearnFinance
← Stock Market Basics Lesson 4 of 14 · 16 min · +50 XP
Stock Market Basics · Lesson 04

NSE, BSE, and how exchanges actually work

Behind the flashing red and green prices on TV is a computer matching millions of buy and sell orders. What an exchange is, how one trade travels from your phone to your demat account, how orders are matched, what the bid-ask spread costs you, trading hours (including the 2026 closing auction), and what keeps your shares safe, even if your broker fails.

Facts reviewed Oct 2026

When someone says “I bought shares on the stock market”, here’s what really happened. They placed an order with a broker. The broker sent it to an exchange. The exchange found a matching seller and completed the trade, in a tiny fraction of a second.

That’s the whole thing. But each step is worth understanding.

What an exchange is

A stock exchange is an organised marketplace where shares, and also bonds, ETFs and derivatives, are bought and sold. It:

  • runs the computer that matches buyers with sellers;
  • sets the trading rules;
  • publishes prices for everyone to see;
  • works with a clearing corporation to make sure buyers get their shares and sellers get their money.

India has two main stock exchanges:

  • The National Stock Exchange (NSE), set up in 1992, started trading in 1994. It’s based in Mumbai and runs the Nifty 50 index. It handles more than 90% of share trading in India and most derivatives trading.
  • The Bombay Stock Exchange (BSE), set up in 1875, is the oldest stock exchange in Asia. It runs the Sensex index. It’s still important, especially for smaller companies and bonds, but it handles far less share trading than the NSE.

There are also specialised exchanges, such as MCX for commodities and NSE IFSC in GIFT City. For Indian shares, though, NSE and BSE are what matter.

Both are regulated by SEBI, the Securities and Exchange Board of India. SEBI sets the rules and punishes people who break them.

How one trade happens, step by step

Let’s follow one trade from start to finish. You want to buy 10 shares of Bharat Foods Ltd (a made-up company) at ₹4,000 each.

  1. You place the order. In your broker’s app, you pick the share and enter 10 shares at ₹4,000. You choose “delivery” (you want to keep the shares) and a limit order (buy at ₹4,000 or less). Then you tap Buy.
  2. Your broker checks it. Do you have enough money? Is the price within the day’s allowed range? This takes milliseconds.
  3. Your broker sends it to the exchange. The exchange gives your order an ID and adds it to the order book for that share.
  4. The order waits in the order book. Each share has an order book on each exchange, listing all the buy and sell orders not yet matched.
  5. The exchange matches it. If someone is selling at ₹4,000 or less, the exchange matches your order with theirs. The trade is done.
  6. Both sides get confirmations. Your app shows the trade, and the money is set aside.
  7. The clearing corporation steps in. NSE Clearing (or, for BSE, Indian Clearing Corporation) becomes the buyer to every seller and the seller to every buyer. So you don’t need to trust the stranger on the other side; the clearing corporation guarantees the trade.
  8. Settlement on T+1. The shares arrive in your demat account, held at CDSL or NSDL, and the money leaves your account, one working day after the trade. This is called T+1 (trade day plus one).

India finished moving to T+1 in January 2023, ahead of most big markets; the US followed in May 2024. Since March 2024, India has also run an optional same-day (T+0) settlement for a limited set of shares.

You place an order with a broker, who checks margin; the exchange matches orders; the clearing corporation nets and settles; the depository credits shares to your demat account, on T+1.Youplace an orderBrokerchecks marginExchangematches ordersClearing corp.nets and settlesDepositorycredits sharesIndian equities settle on T+1: shares reach the buyer's demat account, money the seller's bank.

How orders are matched: price first, then time

The exchange matches orders using price-time priority:

  • Price first. The highest buy order and the lowest sell order get matched first.
  • Then time. Among orders at the same price, the one placed earliest gets filled first.

Worked example. Three people want to sell, and you want to buy 300 shares at up to ₹4,002:

SellerPriceSharesPlaced at
Asha₹4,00110010:00:05
Ben₹4,00115010:00:02
Chitra₹4,00220009:58:00
  1. Cheapest price first: ₹4,001. Ben placed his order before Asha, so his 150 shares go first.
  2. Then Asha’s 100 shares, also at ₹4,001. You now have 250.
  3. Then the next price, ₹4,002. You take 50 of Chitra’s 200 shares to reach 300.

Chitra placed her order earliest of all, but she asked for a higher price, so she’s matched last. Price beats time.

The order book and the bid-ask spread

In your broker’s app, tap “market depth” on any share. You’ll see something like this:

       BUY (bids)                SELL (asks)
   Price   Qty    Orders   |  Price   Qty    Orders
   3999    120    5        |  4001    80     3
   3998    240    12       |  4002    150    7
   3997    500    18       |  4003    300    11
   3996    180    9        |  4004    420    14
   3995    720    22       |  4005    600    19
  • The best bid is the highest price any buyer will pay: ₹3,999 here.
  • The best ask (or offer) is the lowest price any seller will accept: ₹4,001.
  • The gap between them, ₹2, is the bid-ask spread.

If you place a market order to buy right now (an order to buy at whatever the current price is), you’ll pay ₹4,001. A market order to sell gets ₹3,999. The spread is a small, hidden cost of every trade.

Quick check

The best bid is ₹3,999 and the best ask is ₹4,001. You buy 100 shares with a market order and immediately sell them with another. Ignoring fees, what do you lose?

The hidden cost of the bid-ask spread
Spread as a % of the price
0.05%
Cost of crossing it, per round trip
₹200
Cost over a year
₹200

A ₹2 spread on a ₹4,000 share is only 0.05%. Set the bid to ₹95 and the ask to ₹100, typical of a small company's share that trades rarely, and the spread costs 5% of every round trip, before any fees.

Trading hours

Normal share trading on NSE and BSE:

SessionTimeWhat happens
Pre-open9:00–9:15 AMOrders are collected, then matched to find the opening price
Normal trading9:15 AM–3:30 PMOrders are matched continuously
Post-close3:30–4:00 PMOrders at the closing price

Since 3 August 2026, shares that also trade in futures and options work a little differently. Their normal trading ends at 3:15 PM. Then a closing auction collects orders and sets one closing price (as of October 2026). Other shares keep the timetable above; their closing price is the weighted average price of the last half hour. Equity derivatives trade until 3:40 PM.

Markets are open Monday to Friday, except on holidays the exchanges announce each year.

What keeps your shares safe

Three things make the system trustworthy:

  1. SEBI’s rules. SEBI enforces rules on openness, broker conduct and market abuse. It can fine, ban and prosecute wrongdoers.
  2. Clearing corporations. They guarantee every trade and keep large default funds. In more than 30 years of India’s electronic market, no ordinary investor has lost settled money because the other side of a trade failed to pay.
  3. Depositories. Your shares are held electronically at NSDL or CDSL in your own demat account, not by your broker.

A real example: Karvy. In 2019, SEBI found that the broker Karvy Stock Broking had misused the shares of about 95,000 clients, worth more than ₹2,300 crore. It had pledged them to raise over ₹600 crore in loans for itself. On SEBI’s orders, NSDL moved the shares back into the accounts of about 83,000 clients who had fully paid for them. SEBI then tightened the rules, so brokers can no longer pledge or move clients’ shares without the client’s own approval.

The lesson: your shares are much safer than any cash sitting in your broker’s trading account. Don’t keep more cash with your broker than you need.

Going further: why two exchanges? Having two exchanges creates competition on costs and technology, and a backup if one has a technical problem. In February 2021, trading on the NSE stopped for about four hours because of a network problem. Most shares can be traded on both exchanges at almost the same price, as the lesson on the ten ideas of finance explained.

Common mistakes

  • Thinking your broker holds your shares. They’re in your own demat account at NSDL or CDSL.
  • Using market orders in shares that trade rarely. The spread can be large; use a limit order.
  • Ignoring the spread. It’s a real cost on every trade, on top of fees.
  • Leaving lots of cash with your broker. Cash is less protected than shares; move spare cash back to your bank.
  • Trading near the close without knowing the rules. For many shares, the last 15 minutes are now a closing auction.
Practice 1: A small company's share has a best bid of ₹48 and a best ask of ₹50. You buy and sell 1,000 shares five times a year using market orders. What does the spread cost you a year, and as a % of the price each time?

Spread: ₹50 − ₹48 = ₹2.

As a % of the price: ₹2 ÷ ₹49 (the middle price) ≈ 4.1% on every round trip.

Cost a year: ₹2 × 1,000 shares × 5 = ₹10,000, before any fees or taxes.

Limit orders, or simply trading less, would save much of this.

Practice 2: You place a limit order to buy 200 shares at up to ₹101. Sellers in the order book: 150 shares at ₹100 (placed 10:05), 100 shares at ₹101 (placed 10:01), 80 shares at ₹101 (placed 10:03). Which shares do you get, and at what prices?
  1. Lowest price first: all 150 shares at ₹100.
  2. Next price, ₹101: the earliest order there was placed at 10:01, so you get 50 of its 100 shares.

You now have 200 shares: 150 at ₹100 and 50 at ₹101. The 80 shares placed at 10:03 aren’t touched, because they came later at the same price.

Key takeaways

  • An exchange is an electronic marketplace where a computer matches buy and sell orders. NSE handles more than 90% of share trading; BSE is Asia’s oldest exchange. Both are regulated by SEBI.
  • Orders match on price-time priority: best price first, then earliest order.
  • The clearing corporation guarantees every trade, and settlement is T+1.
  • The bid-ask spread is a hidden cost of every trade, and it’s much bigger in shares that trade rarely.
  • Since 3 August 2026, shares with futures and options end the day with a closing auction.
  • Your shares sit in your own demat account at NSDL or CDSL, separate from your broker, as Karvy’s clients found.

Go deeper

  • NSE: Exchange circulars, including each year’s trading holiday list.
  • SEBI: SCORES, to complain about a broker or company.
  • Read your monthly CDSL or NSDL statement: it lists your shares independently of your broker’s records.
Complete this lesson
Pass the quiz below (60% or more) to earn +50 XP and unlock the next lesson.
Quiz not passed yet
🧠

Quiz: NSE, BSE, and exchanges

5 questions · pass 60% to complete