What Is a Stock Exchange and How Does the Share Market Work in India? Complete Guide to Trading, Technology, NSE, BSE, Clearing and Settlement
Quick Answer A stock exchange is not simply a website showing share prices. It is a highly regulated electronic marketplace and technology infrastructure whe...
Quick Answer
A stock exchange is not simply a website showing share prices. It is a highly regulated electronic marketplace and technology infrastructure where authorised participants submit orders to buy and sell securities.
In India, the best-known exchanges for shares are NSE (National Stock Exchange of India) and BSE (BSE Ltd.). However, India also has exchanges covering commodities and other market segments.
According to SEBI's published list, the recognised exchanges include BSE, Calcutta Stock Exchange, Metropolitan Stock Exchange of India, Multi Commodity Exchange of India (MCX), NCDEX and National Stock Exchange of India (NSE). Their permitted segments differ. For example, NSE and BSE support multiple securities-market segments, while MCX and NCDEX specialise in commodity derivatives.
A typical transaction can be simplified as:
Investor → Broker/App → Broker's Trading System → Stock Exchange → Matching Engine → Trade Confirmation → Clearing Corporation → Bank/Depository → Settlement
The exchange's computer systems continuously receive orders from market participants, validate them, place them in electronic order books, match compatible buyers and sellers, generate trades and distribute updated market information.
The system can therefore process enormous amounts of data without a human being manually deciding who should buy from whom.
What Is a Share or Stock Exchange?
A stock exchange is an organised marketplace for trading financial instruments.
Depending on the exchange and permitted segment, these may include:
- Equity shares
- Equity derivatives
- Futures
- Options
- Currency derivatives
- Interest-rate derivatives
- Commodity derivatives
- Debt securities
- Bonds
- Exchange-traded products
- Electronic Gold Receipts and other permitted instruments
SEBI describes stock exchanges as centralised platforms where investors buy and sell financial instruments and where the exchange contributes to liquidity, price discovery and transparency.
An important distinction is:
The stock exchange normally does not sell you the shares.
It provides the marketplace and infrastructure that brings together orders from buyers and sellers.
A Simple Example of How an Exchange Works
Suppose ABC Ltd. is trading around ₹500.
There are buyers willing to purchase it:
| Buyer | Quantity | Maximum Price |
|---|---|---|
| Buyer A | 100 | ₹498 |
| Buyer B | 50 | ₹499 |
| Buyer C | 200 | ₹500 |
And sellers willing to sell:
| Seller | Quantity | Minimum Price |
|---|---|---|
| Seller X | 80 | ₹500 |
| Seller Y | 100 | ₹501 |
| Seller Z | 200 | ₹502 |
Buyer C is prepared to pay ₹500 and Seller X is prepared to sell at ₹500.
Their prices are compatible.
The exchange's matching system can therefore execute a trade.
This is one of the fundamental mechanisms behind electronic stock trading.
Who Decides the Share Price?
One of the most common misconceptions is that NSE, BSE, SEBI or the company itself continuously decides its share price.
Normally, they do not.
Prices emerge from demand and supply through orders submitted by market participants.
For example:
Suppose the current market is:
Best Buyer: ₹999
Best Seller: ₹1,000
If someone submits an eligible buy order capable of matching the ₹1,000 seller, a trade can occur.
If buying demand becomes aggressive and sellers at ₹1,000, ₹1,001 and ₹1,002 are consumed, subsequent trades may occur at progressively higher prices.
Conversely, heavy selling can consume available buy orders and push traded prices lower.
This continuous interaction is called price discovery.
What Is the Order Book?
At the heart of an electronic exchange is an order book.
Conceptually, it may look like this:
| Buy Quantity | Bid Price | Ask Price | Sell Quantity |
|---|---|---|---|
| 1,200 | ₹499.90 | ₹500.00 | 800 |
| 2,400 | ₹499.80 | ₹500.10 | 1,600 |
| 3,100 | ₹499.70 | ₹500.20 | 2,100 |
The highest available buy price is commonly called the best bid.
The lowest available sell price is the best ask/offer.
The difference between them is the bid-ask spread.
This order book can change extremely rapidly as orders are:
- submitted,
- modified,
- cancelled,
- partially filled, or
- completely executed.
How Does the Exchange Decide Which Order Gets Priority?
Modern Indian exchanges use defined matching rules rather than a person choosing orders manually.
For NSE's normal equity market, orders are generally maintained using price-time priority.
NSE explains the principle as:
- Best price gets priority
- Among orders at the same price, the earlier order receives priority.
The best buy is the highest-priced buy order, while the best sell is the lowest-priced sell order.
Consider three buyers:
| Order | Price | Time |
|---|---|---|
| A | ₹500 | 10:01:01 |
| B | ₹501 | 10:01:03 |
| C | ₹501 | 10:01:05 |
B and C offer a better price than A.
Between B and C, B arrived first.
Therefore, under price-time priority:
B → C → A
This happens automatically inside the exchange's trading system.
What Happens When You Press BUY in a Trading App?
This is where the complete picture becomes interesting.
Suppose you open your broker's application and place:
BUY 100 shares of XYZ Ltd. at ₹500
The transaction passes through several layers.
Step 1 – You Use the Broker's Front End
You may be using:
- Mobile application
- Web trading platform
- Desktop terminal
- Dealer terminal
- API-based system
- Approved algorithmic system
Your app is generally not the stock exchange itself.
It is the broker's interface.
Step 2 – The Broker Receives the Order
The broker's infrastructure receives your request.
Depending on the applicable rules and order, systems may perform checks involving matters such as:
- client identity,
- trading permissions,
- available funds/margin,
- quantity,
- instrument,
- price limits,
- risk limits,
- exchange segment,
- product type and
- regulatory/risk controls.
Only an acceptable order proceeds towards the exchange.
Step 3 – Order Reaches the Exchange
The broker is connected to the exchange through approved electronic connectivity.
The exchange receives the order.
It is assigned identifying and timing information and processed by the trading system.
NSE states that orders receive a distinctive order number and unique timestamp and are immediately processed for a potential match.
Step 4 – Exchange Validates the Order
Exchange systems apply their own validations.
An invalid or impermissible order can be rejected.
A valid order proceeds to the appropriate electronic order book.
Step 5 – Matching Engine Searches for a Counter-Order
Suppose you submit:
BUY 100 XYZ @ ₹500
The order book already contains:
SELL 100 XYZ @ ₹500
The orders can match.
A trade is generated.
This process can happen so quickly that to a normal retail investor it appears almost instantaneous.
Step 6 – Trade Confirmation Is Generated
The exchange communicates the trade information through the relevant systems.
Your broker receives confirmation and your app may display something such as:
Executed: 100 XYZ @ ₹500
But execution is not the entire lifecycle.
The trade still has to be cleared and settled.
Trading, Clearing and Settlement Are Different Jobs
This distinction is fundamental to understanding financial-market infrastructure.
Trading
Determines:
Who bought/sold what, how much and at what price?
Clearing
Determines obligations:
Who owes money and who owes securities?
Settlement
Completes the obligations:
Money and securities are transferred according to the applicable settlement mechanism.
These functions are deliberately structured and regulated rather than placing the entire process in a single retail trading application.
What Is a Clearing Corporation?
After a trade is executed, clearing infrastructure manages the resulting obligations and associated counterparty risks.
SEBI currently lists recognised clearing corporations including:
- NSE Clearing Limited
- Indian Clearing Corporation Limited
- Multi Commodity Exchange Clearing Corporation Limited
- National Commodity Clearing Limited
- AMC Repo Clearing Limited
The applicable corporation depends on the market/infrastructure involved.
Clearing corporations are a critical part of India's Market Infrastructure Institution framework.
What Are NSDL and CDSL?
This is another area frequently confused with NSE and BSE.
NSE/BSE = exchanges
NSDL/CDSL = depositories
They perform different jobs.
India currently has two SEBI-listed depositories:
National Securities Depository Limited (NSDL)
and
Central Depository Services (India) Limited (CDSL).
A depository is somewhat analogous to an electronic securities vault and ownership-record infrastructure.
It enables securities to be held in dematerialised form.
SEBI explains that depositories hold securities electronically and facilitate their transfer between buyers and sellers.
What Is a Demat Account?
A Demat Account, or dematerialised account, is used for electronically holding securities.
For example, after buying shares, your holdings may ultimately appear as:
XYZ Ltd. – 100 shares
in your demat account.
The demat account operates through the depository ecosystem.
A Depository Participant (DP) acts as an intermediary between an investor and a depository.
Banks and stockbrokers can act as DPs when appropriately registered/authorised.
NSE, NSDL, Broker and Demat Account Are Not the Same Thing
A useful conceptual model is:
Investor
│
▼
Broker / Trading App
│
▼
Stock Exchange
│
▼
Clearing Corporation
│
├──────── Funds / Banking System
│
▼
Depository System
│
▼
Investor's Demat Account
Each layer has a different responsibility.
What Is Settlement?
Settlement is the process by which the obligations arising from completed trades are fulfilled.
India's equity cash market operates primarily with the T+1 rolling settlement cycle, while an optional T+0 mechanism has also been introduced for eligible securities/transactions under the applicable framework. SEBI had fully implemented T+1 across the equity market by January 2023 and subsequently introduced optional T+0 alongside it.
Here:
T = Trade day
Therefore:
T+1 = settlement on the next applicable settlement day
The exact handling depends on market rules, holidays, security, segment and settlement mechanism.
How Can the Market Show Prices in Real Time?
Now we come to the technology behind the exchange.
A modern exchange is essentially a specialised, highly resilient real-time distributed financial computing environment.
It must simultaneously handle:
- incoming orders,
- cancellations,
- modifications,
- matching,
- executions,
- market depth,
- last traded prices,
- index calculations,
- member connectivity,
- market-data distribution,
- risk controls,
- surveillance information,
- logs,
- clearing information and
- regulatory records.
A conventional business application architecture is not enough for the most latency-sensitive parts of this workload.
The Technology Architecture Behind a Modern Stock Exchange
A simplified architecture looks like:
Millions of Investors
│
▼
Broker Apps / APIs / Terminals
│
▼
Broker Infrastructure
│
▼
Exchange Connectivity Gateways
│
▼
Validation / Risk Controls
│
▼
Order Management
│
▼
Matching Engine
│
├────────► Trade Engine
│
├────────► Market Data Feed
│
├────────► Surveillance Systems
│
└────────► Audit / Logging
│
▼
Clearing Corporation
│
┌───────┴───────┐
▼ ▼
Depositories Banks
NSDL / CDSL Fund Settlement
The actual architecture is substantially more sophisticated and includes redundancy, security, network controls, monitoring and disaster-recovery arrangements.
NSE's Electronic Trading Technology
NSE's core electronic trading environment is historically associated with NEAT — National Exchange for Automated Trading.
NSE states that NEAT is a screen-based trading system operating over its nationwide high-speed network. As of 31 March 2026, NSE reported support for 207,504 trading terminals across its network. It also states that its infrastructure can add hardware capacity as trading load increases and that trading information is disseminated to members almost instantaneously.
NSE also supports various approved connectivity/front-end arrangements, including facilities associated with:
- computer-to-computer links,
- internet-based trading,
- direct market access,
- algorithmic trading,
- smart order routing and
- co-location.
This helps explain why a market can serve enormous numbers of end users while maintaining an electronic order book.
Does One Giant Server Run the Whole Stock Market?
No.
It would be unsafe and impractical to imagine the entire securities market running from one giant Windows/Linux server and one database.
Modern financial-market infrastructure uses multiple specialised systems and layers.
These can include:
- trading engines,
- order gateways,
- market-data systems,
- risk-management systems,
- surveillance platforms,
- databases,
- message-processing infrastructure,
- network appliances,
- security systems,
- monitoring systems,
- clearing platforms,
- storage infrastructure,
- backup systems and
- disaster-recovery infrastructure.
Critical systems are designed for high availability and fault tolerance.
The precise internal architecture of an exchange is security-sensitive and evolves over time, so public descriptions should not be interpreted as a complete network diagram.
How Can Such Huge Amounts of Data Be Processed So Quickly?
Several engineering principles make it possible.
1. Specialised Matching Engines
The matching engine is designed for one extremely important job:
maintaining order books and matching compatible orders according to exchange rules.
It does not operate like an ordinary e-commerce website.
2. In-Memory Processing
Latency-sensitive data can be maintained in memory where appropriate rather than requiring slow disk access for every operation.
Persistent records, replication and logging are still required, but the hot trading path is designed to minimise unnecessary delays.
3. High-Speed Networks
Exchanges operate specialised network infrastructure connecting trading members and exchange systems.
The network is designed for:
- high throughput,
- low latency,
- predictable performance,
- redundancy and
- controlled access.
4. Parallel and Distributed Infrastructure
Not every market function must be processed by the same machine.
Different workloads can be separated by:
- market segment,
- service,
- function,
- gateway,
- data distribution,
- risk processing and
- supporting infrastructure.
This allows systems to scale.
5. Extremely Efficient Software
Latency-sensitive exchange software is engineered differently from a typical website.
Priorities include:
- deterministic behaviour,
- very fast message processing,
- efficient memory use,
- minimal unnecessary processing,
- resilience and
- predictable latency.
What Is Latency?
Latency is the time required for information to travel through and be processed by a system.
For example:
Broker sends order
↓
Exchange receives order
↓
Order validated
↓
Matching engine processes it
↓
Result returned
Every network and processing step contributes latency.
For ordinary investors, milliseconds may seem extremely fast.
For professional electronic trading systems, even much smaller timing differences can matter.
What Is Co-Location?
Some sophisticated market participants require extremely low-latency connectivity.
NSE provides a co-location facility in which eligible trading members can place their infrastructure in exchange-provided data-centre facilities, subject to applicable rules and controls.
Why?
Compare:
Trader Server → Internet/WAN → Exchange
with infrastructure physically much closer to exchange systems:
Co-location Infrastructure → Exchange Network
Reducing physical/network distance and intermediate hops can reduce communication latency.
Co-location is particularly relevant to institutional and algorithmic trading.
What Is Algorithmic Trading?
Algorithmic trading means software generates or manages trading orders according to programmed logic, subject to applicable regulations and controls.
For example, an algorithm might evaluate:
IF specified market conditions are satisfied
AND risk conditions are satisfied
THEN generate an order
Professional algorithms can be vastly more complex, analysing:
- prices,
- order-book changes,
- liquidity,
- volatility,
- spreads,
- multiple instruments and
- risk parameters.
NSE provides infrastructure supporting algorithmic trading arrangements under applicable rules.
What Is High-Frequency Trading?
High-frequency trading, or HFT, is a specialised form of automated trading where systems may make and act upon trading decisions at extremely high speeds.
It can involve:
- low-latency infrastructure,
- automated strategies,
- sophisticated algorithms,
- high-performance servers and
- high-speed exchange connectivity.
HFT should not be confused with simply placing trades quickly from a mobile phone.
How Does Your Screen Receive Live Share Prices?
When you watch:
ABC ₹1,001.20 ▲ 3.25
your broker normally does not independently invent that price.
A simplified information flow is:
Orders enter exchange
↓
Trades occur / order book changes
↓
Exchange market-data systems
↓
Authorised market-data distribution
↓
Broker / Data Vendor
↓
Broker Servers
↓
WebSocket / streaming connection
↓
Your Trading App
The exact architecture differs among providers.
This is why your screen can change continuously without manually refreshing the entire webpage.
Streaming Data vs Normal Website Refresh
An ordinary website might work like:
Browser → Request Page → Server → Response
A trading platform needs continuously changing information.
Modern applications therefore commonly use streaming/event-driven mechanisms so that updates can be pushed as market conditions change.
This may involve technologies such as:
- persistent network connections,
- WebSockets at the application layer,
- streaming APIs,
- message queues,
- event-driven systems,
- binary market-data protocols and
- specialised low-latency network protocols.
The exact technologies used internally by exchanges and individual brokers vary.
Why Can NSE and BSE Show Different Prices for the Same Share?
Because they are different marketplaces with different order books.
Suppose XYZ Ltd. is listed/traded on both exchanges.
At one instant:
NSE
Best Buy: ₹500.00
Best Sell: ₹500.10
BSE
Best Buy: ₹499.95
Best Sell: ₹500.15
There is nothing inherently wrong with this.
The buyers and sellers currently submitting orders to each exchange are not necessarily identical.
As a result:
- liquidity can differ,
- bid/ask prices can differ,
- market depth can differ and
- last traded price can differ slightly.
Competition and arbitrage generally tend to keep prices reasonably aligned for actively traded securities, but the exchanges are not one shared order book.
Are NSE and BSE Connected to One Universal Exchange?
No.
There is no single universal global stock exchange that executes every share transaction worldwide.
Countries and regions operate multiple regulated exchanges.
Examples internationally include markets operated by:
- NYSE,
- Nasdaq,
- London Stock Exchange,
- Japan Exchange Group,
- Hong Kong Exchanges and
- many others.
Each operates within applicable legal and regulatory structures.
Indian exchanges are likewise separate marketplaces.
Then How Can the Same Company Trade on NSE and BSE?
A company can have its securities admitted/listed on more than one exchange when the applicable requirements are satisfied.
For example, the same company's shares may trade on both NSE and BSE.
But:
NSE Order Book ≠ BSE Order Book
A buyer on NSE normally matches against an eligible seller in NSE's order book.
A buyer on BSE matches through BSE's trading system.
They are separate markets.
NSE vs BSE – Do They Work Differently?
At the basic conceptual level, they perform many similar functions.
Both provide regulated electronic marketplaces.
Both support:
- order submission,
- electronic matching,
- market-data distribution,
- surveillance,
- listing-related infrastructure,
- member connectivity and
- interaction with clearing/settlement infrastructure.
However, they are separate organisations with their own:
- trading infrastructure,
- order books,
- products,
- indices,
- members/connectivity,
- technology implementations and
- operational procedures.
Their benchmark indices are also different.
NSE → NIFTY 50
BSE → SENSEX
How Many Stock Exchanges Are There in India?
This question needs qualification because “stock exchange” is often used casually to mean only an equity exchange.
SEBI's published recognised-exchange list contains six names:
| Exchange | Main Permitted Segments Shown by SEBI |
|---|---|
| BSE Ltd. | Equity, derivatives, currency, commodity derivatives, debt, EGR |
| Calcutta Stock Exchange Ltd. | No active permitted segment shown on the cited SEBI list |
| Metropolitan Stock Exchange of India Ltd. | Equity, equity derivatives, currency derivatives, debt |
| Multi Commodity Exchange of India Ltd. (MCX) | Commodity derivatives |
| NCDEX Ltd. | Commodity derivatives |
| National Stock Exchange of India Ltd. (NSE) | Equity, equity derivatives, currency derivatives, commodity derivatives, debt |
SEBI's list should be checked for the latest recognition status because recognition periods and operating status can change. The page currently available from SEBI was last marked updated on 2 January 2025, and MSEI's recognition on that page was shown through 15 September 2026.
Therefore, it is safer to say:
India has multiple recognised exchanges, but NSE and BSE dominate what retail investors commonly call the Indian share market. MCX and NCDEX are principally associated with commodity derivatives.
Do not assume every recognised exchange offers the same products or has the same trading activity.
What About India's Old Regional Stock Exchanges?
Historically, India had many regional stock exchanges.
Examples included:
- Delhi Stock Exchange
- Ahmedabad Stock Exchange
- Madras Stock Exchange
- Bangalore Stock Exchange
- Pune Stock Exchange
- Cochin Stock Exchange
- Hyderabad Stock Exchange
- Ludhiana Stock Exchange
- Jaipur Stock Exchange
Many subsequently exited.
SEBI's published list records numerous exchange exits between 2013 and later years.
Electronic nationwide trading significantly changed the economic need for many regional exchange structures.
What Is MCX?
MCX — Multi Commodity Exchange of India is primarily a commodity-derivatives exchange.
It is associated with trading contracts based on commodities rather than functioning primarily as a conventional equity-share marketplace.
Commodity markets can involve contracts linked to assets such as metals and energy commodities, depending on products approved and available at the time.
SEBI currently lists MCX as a recognised exchange permitted for commodity derivatives.
What Is NCDEX?
NCDEX Ltd. is another recognised commodity-derivatives exchange.
It has traditionally been important for agricultural commodity derivatives.
SEBI lists NCDEX as permitted for commodity derivatives.
Therefore:
NSE/BSE → heavily associated with securities/equity markets
MCX/NCDEX → primarily associated with commodity derivatives
although permitted segments should always be checked against current regulatory information.
Who Controls the Indian Stock Market?
At the top of the securities-market regulatory structure is:
SEBI – Securities and Exchange Board of India
SEBI regulates India's securities market.
SEBI's Market Regulation Department supervises Market Infrastructure Institutions including:
- stock exchanges,
- clearing corporations and
- depositories.
This creates an important hierarchy:
SEBI
│
┌─────────┼─────────┐
▼ ▼ ▼
Exchanges Clearing Depositories
Corporations
│
▼
Trading Members / Brokers
│
▼
Investors
This diagram is conceptual rather than a complete legal organisational chart.
What Are Market Infrastructure Institutions?
SEBI refers to important financial-market infrastructure organisations as Market Infrastructure Institutions (MIIs).
These include major infrastructure such as:
- stock exchanges,
- clearing corporations and
- depositories.
They form the backbone of the securities-market ecosystem.
Their importance is much greater than that of an ordinary financial website because disruption or failure could affect large numbers of investors and the broader financial system.
How Are Different Tasks Divided?
A useful way to understand the complete ecosystem is:
| Organisation/System | Main Job |
|---|---|
| SEBI | Regulation and supervision |
| Stock Exchange | Trading marketplace |
| Broker | Investor access to exchange |
| Trading App | User interface |
| Matching Engine | Matches compatible orders |
| Clearing Corporation | Determines/manages settlement obligations and counterparty risk |
| Depository | Electronic securities infrastructure |
| Depository Participant | Interface between investor and depository |
| Bank/Clearing Bank | Money movement |
| RTA | Issuer records and corporate-action related functions |
| Listed Company | Issuer of securities |
| Investor | Buyer/seller/holder |
This division of responsibility is one reason the market can remain scalable and controlled.
What Is an RTA?
RTA means Registrar and Transfer Agent.
RTAs perform important issuer-related functions, which can include supporting:
- securities records,
- allotments,
- transfers,
- corporate actions,
- investor servicing and
- related record keeping.
SEBI identifies RTAs as participants involved in functions such as corporate actions and share allotment.
What Happens During an IPO?
So far, we have mainly discussed the secondary market.
An IPO belongs to the primary market process.
When a company initially offers securities to investors:
Company
↓
IPO Process
↓
Investors subscribe
↓
Shares allotted
↓
Shares credited to eligible investors
↓
Security becomes available for exchange trading
After listing, investors can buy and sell those shares in the secondary market subject to market rules.
Therefore:
Primary market = company raises capital by issuing securities
Secondary market = investors trade existing securities with one another
Does the Company Receive Money Every Time Its Share Is Bought?
Usually, no.
This is another important misconception.
Suppose you buy 100 shares of a listed company from another investor in the secondary market.
The trade is principally between market participants.
The company does not receive your purchase amount simply because its share changed hands on the exchange.
Capital raising occurs through mechanisms such as initial or further issuance, rights issues and other permitted corporate financing routes.
How Are Stock Market Indices Calculated?
Indices such as:
NIFTY 50
and
SENSEX
represent selected baskets of securities according to their respective methodologies.
An index is not simply the arithmetic average of every stock price.
Index providers use defined methodologies involving factors such as eligible constituents and weighting methodology.
When constituent share prices move, the calculated index value changes accordingly.
That is why you can see:
NIFTY +0.8%
even though some individual NIFTY constituents may be falling.
How Does the Exchange Protect Against Abnormal Activity?
Stock-market infrastructure contains multiple layers of controls.
Depending on the security and market, mechanisms can include:
- price bands,
- circuit filters,
- market-wide circuit breakers,
- margin requirements,
- position limits,
- order validations,
- surveillance systems,
- risk monitoring,
- member controls,
- abnormal-trading detection and
- regulatory investigation.
These mechanisms do not guarantee that investors cannot lose money.
Their purpose is to help maintain orderly markets and manage specified risks.
What Happens If a Stock Exchange System Fails?
A major exchange cannot simply assume that its primary technology will never fail.
Financial-market infrastructure requires resilience measures that can include:
- redundant hardware,
- redundant networks,
- multiple power paths,
- backups,
- replicated systems,
- disaster-recovery facilities,
- monitoring,
- cybersecurity controls,
- capacity planning,
- incident-management procedures and
- periodic testing.
Exactly how a specific exchange implements these measures is governed by its architecture and regulatory requirements.
Is Stock Market Data Stored Permanently?
Different types of information have different operational and regulatory retention requirements.
Market infrastructure must maintain extensive records concerning activities such as:
- orders,
- trades,
- timestamps,
- member activity,
- settlement,
- surveillance and
- audit information.
This creates enormous datasets.
But the system displaying a live price and the systems responsible for historical records do not necessarily process data in exactly the same way.
A well-designed architecture separates latency-critical workloads from analytics, reporting and long-term storage where appropriate.
Why Doesn't Heavy Data Make the Stock Exchange Slow Like a Normal Database?
Because exchange infrastructure is engineered specifically for high-volume transaction processing.
Imagine an ordinary application doing:
Receive Request
↓
Open Database
↓
Run Multiple SQL Queries
↓
Generate Web Page
↓
Send HTML
A latency-sensitive trading engine can instead use highly optimised data structures and message-processing pipelines.
Conceptually:
Receive Order Message
↓
Validate
↓
Locate Order Book
↓
Compare Best Eligible Counter-Order
↓
Match / Queue
↓
Generate Event
The hot path is intentionally kept extremely efficient.
This is why comparing a stock-exchange matching engine directly with a conventional PHP/MySQL website is misleading.
How Can Millions of Users See the Same Price?
They generally do not all connect directly to one matching-engine server.
Market information is distributed through a layered architecture.
Conceptually:
Exchange
│
Market Data System
│
┌────────────┼────────────┐
▼ ▼ ▼
Broker A Broker B Data Vendor
│ │ │
Servers Servers Servers
│ │ │
Customers Customers Customers
This distribution architecture prevents every retail mobile phone from directly communicating with the core matching engine.
Why Does My Broker Sometimes Show a Slight Delay?
Potential delay can occur at several points:
Exchange
↓
Data distribution
↓
Broker infrastructure
↓
Internet
↓
Your device
↓
Application rendering
Your displayed price therefore depends on more than just the speed of the exchange.
For a retail investor, a broker application should not be assumed to represent zero-latency direct access to an exchange's internal matching engine.
Stock Exchange vs Broker vs Depository – Quick Comparison
| Feature | Stock Exchange | Broker | Depository |
|---|---|---|---|
| Example | NSE/BSE | SEBI-registered trading member/broker | NSDL/CDSL |
| Executes/matches market orders | Yes, through exchange trading system | Routes/submits authorised client orders | No |
| Provides retail app | Not necessarily the investor's primary trading interface | Commonly yes | Depository/DP access may be provided |
| Holds securities electronically | No | May also act as DP, but brokerage and depository roles are distinct | Yes, through depository system |
| Performs price discovery | Yes | Participates/routes orders | No |
| Regulated within SEBI framework | Yes | Yes | Yes |
Are All Stock Exchanges in the World Connected?
There is no single worldwide matching engine.
However, global financial markets are economically interconnected.
Events in:
- United States,
- Europe,
- China,
- Japan,
- commodities,
- currencies,
- interest rates and
- geopolitical markets
can influence investor behaviour elsewhere.
So markets are economically connected, but they are not one universal electronic exchange.
Example: Complete Life Cycle of One Share Trade
Suppose Bal wants to buy:
100 shares of ABC Ltd. at ₹750
Stage 1 – Order
The investor enters:
BUY
ABC
Quantity: 100
Limit Price: ₹750
Stage 2 – Broker
The broker validates applicable account and risk requirements.
Stage 3 – Exchange
The order is transmitted to the relevant exchange.
Stage 4 – Order Book
Suppose the best seller offers:
100 shares @ ₹749.90
The incoming buy order is marketable against that existing sell order, subject to exchange matching rules.
Stage 5 – Execution
A trade is generated.
Stage 6 – Confirmation
The broker receives the execution information and displays it to the investor.
Stage 7 – Clearing
The clearing infrastructure calculates and manages the resulting obligations.
Stage 8 – Settlement
Funds and securities move through the applicable settlement infrastructure.
Stage 9 – Depository
The resulting securities holding is reflected through the depository/demat ecosystem.
What looked like:
Click BUY
actually involved several independent financial and technology systems.
The Complete Indian Securities-Market Picture
The entire ecosystem can be visualised like this:
GOVERNMENT / LEGAL FRAMEWORK
│
▼
SEBI
│
┌────────────────────┼────────────────────┐
│ │ │
▼ ▼ ▼
STOCK EXCHANGES CLEARING SYSTEMS DEPOSITORIES
NSE / BSE etc. Clearing Corps. NSDL / CDSL
│ │ │
│ │ │
▼ ▼ ▼
BROKERS CLEARING MEMBERS DPs
│ │ │
└──────────────┬─────┴────────────────────┘
│
▼
INVESTOR
Other participants—including listed companies, banks, custodians, RTAs, institutional investors and market-data providers—connect to different portions of this ecosystem.
Common Misconceptions
“NSE owns all the shares.”
No. The exchange provides trading infrastructure.
“My broker decides the market price.”
No. Market prices emerge from orders and executed trades in the marketplace.
“SEBI decides today's share price.”
No. SEBI is the securities-market regulator.
“NSE and BSE share one common order book.”
No. They are separate exchanges.
“NSDL is part of NSE because both have National in their names.”
No. NSE is an exchange; NSDL is a depository.
“The stock exchange transfers the shares into my demat account by itself.”
The post-trade process involves clearing and depository infrastructure.
“There must be one worldwide exchange behind all markets.”
No. Exchanges operate independently under their applicable jurisdictions and market structures.
Why Are Multiple Exchanges Useful?
Multiple exchanges can provide:
- competition,
- alternative trading venues,
- product innovation,
- infrastructure diversity and
- different market segments.
At the same time, regulation and interoperability mechanisms are important so that the broader financial ecosystem remains orderly.
Technology Requirements of a Modern Stock Exchange
A major electronic exchange requires far more than powerful CPUs.
Important engineering requirements include:
Performance
The infrastructure must process huge volumes of messages efficiently.
Low Latency
Orders and market data must be processed rapidly.
High Availability
Critical services need extremely high operational availability.
Scalability
Capacity must grow as market participation and message volumes increase.
Determinism
Systems need predictable behaviour, especially in order processing.
Security
Financial infrastructure is a major cybersecurity target.
Auditability
Important activities require detailed records.
Accurate Timekeeping
Order sequence depends heavily on accurate timestamps and ordering.
Disaster Recovery
A major site failure must not automatically mean permanent market-data or transaction loss.
Data Integrity
A financial system cannot casually lose, duplicate or corrupt trades.
Security Requirements
Exchange infrastructure must defend against risks such as:
- unauthorised access,
- cyberattacks,
- malware,
- denial-of-service attacks,
- insider threats,
- data manipulation,
- network compromise and
- infrastructure failure.
Security therefore includes multiple layers:
Physical Security
+
Network Security
+
Identity & Access Control
+
Application Security
+
Monitoring
+
Encryption where applicable
+
Audit Logging
+
Incident Response
+
Disaster Recovery
Cybersecurity in financial-market infrastructure is therefore an operational necessity, not an optional IT feature.
Advantages of Electronic Stock Exchanges
Modern electronic exchanges provide several major benefits:
- rapid order processing,
- transparent electronic order books,
- nationwide access,
- automated matching,
- efficient price discovery,
- high liquidity in active securities,
- electronic audit trails,
- scalable infrastructure,
- easier regulatory surveillance and
- integration with modern clearing and depository systems.
Limitations and Risks
Technology does not eliminate financial risk.
Markets still face:
- volatility,
- liquidity risk,
- operational failures,
- cybersecurity threats,
- erroneous orders,
- manipulation attempts,
- systemic risk,
- broker failures and
- investor behavioural risks.
A perfectly functioning exchange can still produce a rapidly falling share price if sellers significantly outnumber willing buyers at previous price levels.
The exchange's job is to operate the market according to rules—not to guarantee profits.
Frequently Asked Questions
1. What is a stock exchange?
A stock exchange is a regulated marketplace and technology platform where eligible financial instruments can be bought and sold.
2. Is NSE the Indian stock market?
NSE is a major Indian exchange, but it is not the entire Indian securities market.
3. What is BSE?
BSE Ltd., historically known as the Bombay Stock Exchange, is one of India's major securities exchanges.
4. Are NSE and BSE competitors?
Yes. They are separate exchange organisations and operate separate trading marketplaces.
5. Can the same share trade on NSE and BSE?
Yes, when the security is admitted for trading on both exchanges.
6. Is the share price always identical on NSE and BSE?
Not necessarily. Each exchange has its own order book, so small price and liquidity differences can occur.
7. Who sets a share's price?
The market's buy and sell orders generate price discovery. Exchanges operate the matching mechanism according to defined rules.
8. What is an order-matching engine?
It is the specialised exchange technology responsible for comparing eligible buy and sell orders and creating trades according to applicable matching rules.
9. Does a human approve every stock trade?
No. Normal electronic exchange trading is highly automated.
10. What is price-time priority?
Better-priced orders receive priority, and when orders have the same price, the earlier eligible order receives priority. NSE documents this mechanism for its normal market.
11. What is a demat account?
It is an account used for holding securities electronically through India's depository ecosystem.
12. What is the difference between NSE and NSDL?
NSE is a stock exchange. NSDL is a securities depository.
13. What is CDSL?
CDSL is one of India's two SEBI-listed depositories.
14. What does a broker do?
A broker provides authorised market access and related trading services to investors, subject to applicable regulations.
15. What is a clearing corporation?
It is post-trade market infrastructure responsible for clearing and managing settlement obligations and associated counterparty risks.
16. What is T+1?
It refers to settlement on the next applicable settlement day after the trade date.
17. Does India have T+0 settlement?
An optional T+0 settlement mechanism has been introduced alongside the standard T+1 framework for eligible equity-market transactions under applicable SEBI rules.
18. What is MCX?
MCX is a recognised Indian exchange primarily focused on commodity derivatives.
19. What is NCDEX?
NCDEX is a recognised Indian commodity-derivatives exchange.
20. What is SEBI?
SEBI is India's securities-market regulator.
21. What is algorithmic trading?
It is the use of software-based logic to generate or manage trading orders under applicable rules and risk controls.
22. What is HFT?
High-frequency trading is a specialised type of automated trading designed to operate at extremely low latency and high speed.
23. What is co-location?
It allows eligible market participants to place approved trading infrastructure physically close to exchange systems to reduce network latency, subject to exchange and regulatory rules.
24. Is there one global stock exchange?
No. There are many exchanges worldwide operating under different jurisdictions.
25. Can an exchange crash?
Technology failures are possible, which is why critical market infrastructure uses redundancy, monitoring, business-continuity and disaster-recovery arrangements.
26. Does the company receive money when I buy its shares on NSE?
Normally not when you purchase existing shares from another investor in the secondary market.
27. Why does the share price change every second?
Because new orders, cancellations, modifications and trades continuously change supply, demand and the electronic order book.
28. How does my mobile app receive live prices?
Exchange market data is distributed through market-data infrastructure to brokers/data providers, which then stream relevant information to their customers.
29. Does my mobile phone connect directly to NSE's matching engine?
Normally no. Your device connects to your broker's infrastructure, which interfaces with the exchange through approved systems.
30. How can an exchange handle such enormous amounts of data?
Through specialised matching engines, high-performance computing, high-speed networks, efficient data structures, distributed services, redundancy, scalable infrastructure and carefully engineered low-latency software.
Conclusion
A stock exchange is much more than the screen displaying green and red prices.
It is a combination of financial rules, high-performance computing, high-speed networking, risk management, market surveillance, clearing infrastructure, depositories and regulatory oversight.
When an investor presses BUY, the transaction can travel through:
Trading App → Broker → Exchange Gateway → Order Book → Matching Engine → Trade Confirmation → Clearing Corporation → Banking/Depository Infrastructure → Demat Account
NSE and BSE are separate exchanges rather than two windows into one universal Indian order book. MCX and NCDEX serve important commodity-derivatives roles, while NSDL and CDSL perform the very different job of depository infrastructure.
Perhaps the most important concept is that the stock market is not one computer, one company or one database.
It is an ecosystem of independent but interconnected Market Infrastructure Institutions and intermediaries, each assigned a specialised role.
That separation is what makes it possible for an investor to tap BUY on a mobile phone while, behind that simple action, sophisticated financial infrastructure processes the order, discovers a price, records the trade, manages risk, transfers funds and ultimately updates ownership of securities—all electronically.
#StockExchange #ShareMarket #StockMarket #IndianStockMarket #NSE #BSE #SEBI #NSEIndia #BombayStockExchange #ShareMarketIndia #StockMarketIndia #StockTrading #OnlineTrading #ElectronicTrading #TradingTechnology #StockMarketTechnology #MatchingEngine #OrderBook #PriceDiscovery #MarketDepth #BidAsk #StockBroker #TradingAccount #DematAccount #NSDL #CDSL #Depository #ClearingCorporation #ClearingAndSettlement #T1Settlement #T0Settlement #EquityMarket #CapitalMarket #CommodityMarket #MCX #NCDEX #NIFTY #Sensex #AlgorithmicTrading #AlgoTrading #HighFrequencyTrading #HFT #Colocation #MarketData #RealTimeData #FinancialTechnology #FinTech #MarketInfrastructure #InvestorEducation #StockMarketExplained
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.