BreakdownMarkets10 min · 16 steps
What happens when you press Buy
One order for one share, followed from a phone app in India to the depository that records it, with the American route alongside.
Follow the objectLast checked 13 sources
Pilot. The numbers here come from company filings where I could open them, and from secondary sources where I could not; each step says which. A full fact-check against original documents is still to come.
01 / 16
You press Buy and nothing you own has changed
On a phone app in India, one tap says: buy one share of a company. The price flickers, the button turns green, and the order is placed. But nothing has been delivered. The record that says who owns the share sits in a database run by one of two depositories. One of them, NSDL, held 4.77 crore demat accounts on 31 October 2026. A crore is ten million, so that is 47.7 million accounts at a single institution.
So what happens between the tap and that record? By the end you should be able to follow one order through every hop, say who does what at each one, and explain why the share and the money only change hands on the next working day.
In the pictureA phone with a Buy button, and a trail from the app through broker, exchange and clearing corporation to the depository. NSDL held 4.77 crore demat accounts at 31 October 2026.
- Demat account
- An electronic account that holds shares instead of paper certificates.
Sources1
02 / 16
Why this plumbing matters
Because the amounts are enormous. On 31 October 2026 NSDL had assets worth Rs 542.26 lakh crore in custody, which it converts to about US$5.7 trillion, from 119,671 issuers (the companies and others that have issued securities). Shares were Rs 434.5 lakh crore of that, about 80 per cent by my arithmetic.
A lakh crore is a trillion rupees, so the shares alone come to Rs 434.5 trillion. How an order reaches that ledger decides what you pay, what can go wrong, and who earns money on the way. That is what the rest of this page follows.
In the pictureOf Rs 542.26 lakh crore held in custody at NSDL on 31 October 2026, Rs 434.5 lakh crore, about 80 per cent, was shares.
Sources1
03 / 16
The whole trip in one picture
Here is one order in time order, read left to right. Your app talks to your broker. The broker checks the order and sends it to a stock exchange. Inside the exchange a program called the matching engine pairs it with someone who wants to sell. All of that takes moments. Then the trade goes to a clearing corporation, which guarantees it, and on the next working day the share and the money really move, ending at the depository.
The orange lane is the American variation: the broker may hand the order to a trading firm instead of the exchange. I will come back to every hop. The part that looks dull, the gap between matched and delivered, is where most of the safety is built.
In the pictureA sequence diagram with lanes for the app, broker, a US dealer, exchange, matching engine, clearing corporation and depository. The match happens on the trade day; shares and cash move on the next working day.
- Matching engine
- The exchange's program that pairs buy orders with sell orders.
04 / 16
Step one: you pick a kind of order
The app asks how many shares and at what price, and two answers cover most cases. A market order says: buy now, at whatever is on offer. A limit order says: buy only at this price or better, and for a buyer better means lower.
Picture the prices as a number line. A limit order set below the cheapest seller waits in line until someone comes down to it, and it may never fill. A market order jumps the gap and trades straight away, but you do not know the exact price until it is done. A limit order set at or above the cheapest seller also trades at once. Your limit is a ceiling, not the price you must pay.
In the pictureA price line from 100.01 to 100.08. A limit buy at 100.03 waits behind other bids; a market buy jumps the spread and trades with the cheapest seller at 100.05.
- Limit order
- An order to trade only at a stated price or better.
Sources4
05 / 16
Your broker checks, then forwards
Three accounts make a trade possible: a trading account with a broker, a demat account that will hold the shares, and a bank account the money comes from. In India the broker has to be a trading member of NSE or BSE, which means it is allowed to send orders to that exchange.
Before it does, the broker’s system checks that you have the cash or margin for a buy, or that the shares are in your demat account for a sell, and applies its own risk checks. Only then does the order go to the exchange. In the US a broker may send retail orders somewhere else first. I will get to that after the order book.
In the pictureThree accounts feed an order: trading, demat and bank. The broker checks cash or shares and risk, then sends the order on to the exchange.
- Trading member
- A broker registered with an exchange, allowed to send orders to it.
Sources5
06 / 16
The order book
At the exchange, every share has an order book: a list of buy orders, called bids, and sell orders, called asks. The rule for who goes first is price-time priority. The highest bid and the lowest ask are served first, and among orders at the same price, whoever arrived first goes first. The gap between the best bid and the best ask is the spread.
The numbers in my drawing are made up. The best ask is 100.05 with 500 shares, the best bid is 100.04, so the spread is 0.01. Now a market order to buy 600 shares arrives. It takes all 500 at 100.05, then 100 at 100.06, for an average of about 100.0517. That last 100 cost 0.01 more each, 1 rupee in total. Afterwards the best ask is 100.06 and the spread is 0.02.
In the pictureTwo stacked ladders of bids and asks with the spread between them. A market buy of 600 shares eats 500 at 100.05 and 100 at 100.06, for an average of 100.0517.
- Spread
- The gap between the highest price a buyer offers and the lowest price a seller asks.
Sources4
07 / 16
Who is on the other side
Your 500 shares came from somebody. Often it is a market maker: a firm that stands ready to buy and sell continuously at prices it publishes. It earns the spread, and it carries the risk of holding shares whose price can move.
In my example, a maker that buys 500 at 100.04 and sells 500 at 100.05 keeps 0.01 a share, which is 5 rupees. But if the price drops by 0.05 while it holds those 500 shares, it loses 25. The spread is its pay, and the inventory risk is the cost of the job. In the US, Citadel Securities and Virtu are two of the best known such firms.
In the pictureA seller sells to a market maker at 100.04 and a buyer buys from it at 100.05. In my example the maker keeps 5 rupees on 500 shares, but a 0.05 price drop while it holds them would cost 25.
- Market maker
- A firm that quotes a price to buy and a price to sell, all day, and earns the gap.
Sources6
08 / 16
The American shortcut: payment for order flow
In the US, many retail orders never reach an exchange’s order book. A broker can route them to a wholesaler, a market maker that fills the order itself. The wholesaler then pays the broker a small fee. That is payment for order flow, or PFOF. It is allowed only if no exchange quotes a better price, the broker must still seek best execution, and since 2001 an SEC rule, Rule 606, makes brokers publish routing reports every quarter.
Wikipedia puts PFOF at about $2.5 billion in 2020 and $3.8 billion in 2021 for the 12 largest US brokers, and says over 77 per cent of Robinhood’s 2021 net revenue was transaction-based. I could not tie those to the filings. The EU banned PFOF from 28 March 2024, and the UK and Australia also bar it, per the same page. For India I could not find a rule, and my only source was a broker’s marketing page, so whether PFOF exists here is unverified.
In the pictureThe US route: a broker sends the order to a wholesaler, which fills it and pays the broker a fee. The alternative is to send it to an exchange. Whether India has an equivalent is unverified.
- Payment for order flow
- A fee a trading firm pays a broker for the right to fill the broker's customers' orders.
Sources7
09 / 16
A match is a promise, not a delivery
The moment the engine pairs two orders, the exchange sends a trade report to a clearing corporation. For NSE trades in India that is NSE Clearing; in the US it is NSCC, part of DTCC. The clearing corporation steps between the two sides, so the buyer is not trading with a stranger any more, and neither is the seller. Both face the clearing corporation. Lawyers call this novation.
To make that safe, its members put up collateral called margin, and a fund stands behind them. NSE Clearing’s Core Settlement Guarantee Fund exceeded US$1.38 billion in the 2025-26 financial year, according to an industry article by the World Federation of Exchanges.
In the pictureThe exchange sends a trade report to a clearing corporation, which becomes the buyer to every seller and the seller to every buyer. Margin and a guarantee fund stand behind it.
- Central counterparty
- A clearing house that becomes the buyer to every seller and the seller to every buyer.
10 / 16
Netting: thousands of trades collapse
A busy day makes millions of trades. The clearing corporation does not settle each one. It nets them: for each member it adds up everything bought and sold and leaves one number.
My example has four members and one share, all invented. Four trades move 2,400 shares around. After netting only 700 shares move: B delivers 600, D delivers 100, A receives 300 and C receives 400. Real netting also nets the cash, across every stock. I found a figure for how much it saves at the US clearing house, but only undated on Wikipedia, so I leave it out.
In the pictureFour members trade 2,400 shares in a ring. A ledger of bought, sold and net per member shows only 700 shares need to move.
- Netting
- Adding up what a member bought and sold so only the difference changes hands.
Sources8
11 / 16
Settlement: shares and cash change hands
On settlement day the share moves from the seller’s demat account to yours, and the cash moves between banks. The two legs are tied together: shares usually move only against payment, a rule called delivery versus payment. India settles on the next working day after the trade. Buy on a Friday and that is Monday.
An industry article on how NSE Clearing handled the move to T+1 says custodians’ confirmations were moved from 1 pm to 7:30 am on the settlement day, followed by same-day pay-in and pay-out, and that India’s system uses 15 settlement banks. In the US the share leg runs through DTC, the depository inside DTCC. Only now is the trade done.
In the pictureShares move from the seller's demat account to the buyer's while cash moves the other way through settlement banks, both legs tied together. A Friday trade settles on Monday.
- Delivery versus payment
- The rule that shares move only if the money moves at the same time.
12 / 16
Why T+1, and what about T+0
The shorter the wait between promise and delivery, the less can go wrong in between. The SEC’s stated aim was to reduce credit, market and liquidity risks. The US went from T+5 in the late 1960s to T+3 after the 1987 crash, T+2 in September 2017 and T+1 on 28 May 2024, under a rule adopted on 15 February 2023. India began moving in tranches in February 2022, ran T+1 and T+2 side by side for over 11 months, and finished in early 2023, a year or more ahead. Sources differ on the exact date, so I leave it at early 2023. For NSE Clearing, the same article says T+1 cut the daily margin blocked by about 50 per cent.
Now the correction. India does not have T+0. T+1 is the standard for everyone. T+0, same-day settlement, is an optional extra. SEBI widened it on 10 December 2024, NSE let custodial participants use it from 10 February 2025, and brokers’ readiness date slid from 1 May 2025 to 1 November 2025, then SEBI’s circular of 30 October 2025 extended it again, with further guidance to come later.
In the pictureA timeline of settlement lag: T+5 in the late 1960s, T+3 after 1987, T+2 in 2017, India's T+1 in early 2023, US T+1 on 28 May 2024, and India's optional T+0 with a readiness deadline that keeps moving.
- T+1
- The trade day plus one working day: the day on which a trade settles.
13 / 16
Where your share actually lives
When settlement completes, your demat account is updated. Neither your broker nor the exchange holds the share. The legal record sits at a depository: NSDL or CDSL in India, DTC in the US. You reach it through a depository participant, usually a broker or a bank acting as its agent. On 31 October 2026 NSDL had 326 of them and 52,587 service centres in 2,060 cities and towns, covering 99.39 per cent of India’s PIN codes.
So a demat account is not a place where shares physically sit. It is an entry in a ledger. And this is the narrowest part of the whole trip. Every dematerialised share in India is in one of two ledgers, however many exchanges and brokers feed them.
In the pictureA vault holding the depository's ledger with one highlighted line for you. Depository participants connect to it. NSDL had 326 participants and 52,587 service centres at 31 October 2026.
- Depository participant
- A broker, bank or other firm that acts as the depository's agent and opens demat accounts.
14 / 16
Who gets paid on the way
Follow the money for one order. The spread pays the market maker, as the example showed. In the US the wholesaler may also pay your broker. In my sweep the extra cost of reaching the second price level was 1 rupee on Rs 60,031, about 0.002 per cent of the trade. Citadel Securities reported 2024 revenue of $9.7 billion and net income of $4.2 billion, per Wikipedia. Revenue is not margin, and I cannot say how much of it comes from the spread.
Past that I hit an honest gap. What an Indian broker, an exchange, a clearing corporation or a depository charges, I did not research, so the picture marks those rows as unknown instead of guessing.
In the pictureA trade of Rs 60,031 in which the extra 1 rupee is a hairline, and a ledger of who earns what. Only the market maker's spread and US payment for order flow have sources; the rest are marked as not researched.
15 / 16
The India angle
India is not a copy of the US. It moved to T+1 first, in early 2023, and the US followed on 28 May 2024. In October 2026 NSDL recorded Rs 8,66,457 crore of equity settlement, counting one side of each trade: Rs 8,41,166 crore from NSE and Rs 25,291 crore from BSE. NSE was about 97 per cent, by my arithmetic. NSE began electronic equity trading in November 1994, and NSE Clearing began paying out securities directly to end clients in January 2025, per secondary sources.
One more thing I could not settle. In July 2025 SEBI impounded a large sum from Jane Street and barred it from the market, alleging index manipulation. The firm called it index arbitrage, the ban was lifted on 21 July 2025 and the investigation continues. I have not read SEBI’s final order, so I take no side.
In the pictureIn October 2026, NSE accounted for about 97 per cent of equity settlement at NSDL and BSE about 3. India moved to T+1 in early 2023 and the US on 28 May 2024.
16 / 16
The chain in one line
Your app sends the order to a broker, the broker checks it and sends it to an exchange, the matching engine pairs it with a seller in moments, a clearing corporation steps in and guarantees the trade, and on the next working day the share and the money move and a depository records you as the owner.
What I still do not know: whether payment for order flow exists in India in any form, what each hop charges, how fast a match really is, because I found no sourced figure, and whether India’s optional T+0 will ever become the standard. When I find sources, I will update this page.
In the pictureApp, broker, exchange, clearing corporation, settlement, depository. The match takes moments; ownership is recorded on the next working day.