Lakshya

Trading & Capital Markets · Chapter 1 of 8

What actually happens when you press buy

From a tap to a settled share, in both markets. The structural difference between India and the US is bigger than people expect, and it changes what the jobs are.

7 min read1 diagramAll 8 chapters

Almost everything else in this book depends on having this picture accurately. It is also the question that separates candidates instantly: someone who has only traded describes clicking a button, and someone who has worked in the industry describes eight systems, three of which can reject the order and one of which is a legal entity that guarantees the trade.

INDIA — TWO EXCHANGES, ONE CLEARING CORP PER EXCHANGE youapp or APIbroker RMSmargin checkexchangeNSE or BSEmatchprice-timeclearing corpNSCCL / ICCLdepositoryNSDL / CDSL settlement T+1 — and a same-day T+0 option exists on a subset of scrips UNITED STATES — FRAGMENTED: A RETAIL ORDER USUALLY NEVER REACHES AN EXCHANGE youbroker appbrokerroutes itwholesalerinternalisesor an exchangeone of ~16NSCCnets itDTCbook entry settlement T+1 since May 2024 — and CNS netting means most obligations never move a share at all THE STRUCTURAL DIFFERENCE, AND WHY IT CHANGES THE JOB INDIA  one order book per exchange, and NSE holds the overwhelming share of derivatives → best execution is nearly trivial,             and the interesting problems are margin, expiry mechanics and retail options flow. US       dozens of venues plus dark pools and wholesalers → routing IS the problem, the NBBO must be constructed,             and an entire industry exists to answer “did you get the best price available anywhere?”
The same order, two markets. India routes to one of two exchanges and clears through that exchange's clearing corporation. In the US, a retail order most often never reaches an exchange at all — it is internalised by a wholesaler. That single difference generates an entire American industry, and an entire category of regulation, that has no Indian equivalent.

The Indian path, step by step

  • Your application. A mobile app, a terminal, or an API. Nothing has been validated yet beyond basic field checks.
  • The broker's risk management system. This is the first place your order can die, and it is where most rejections happen. It checks available margin, product-type eligibility, whether the scrip is banned in the F&O segment today, whether you have breached a limit. Under SEBI's upfront-margin regime this check is not advisory — the broker must have collected the margin before the order goes out, which is a genuine change from how the market worked before 2020.
  • The exchange gateway. The broker sends the order over a leased connection to NSE or BSE. The exchange applies its own checks: price bands, circuit filters, tick size, lot size, order-to-trade ratio.
  • The matching engine. Price-time priority. A better price always wins; among equal prices, whoever arrived first wins. This is why latency matters at all — not because speed is inherently valuable, but because time is the second sort key.
  • The clearing corporation. NSE Clearing or Indian Clearing Corporation for BSE. The moment your trade matches, the clearing corporation legally interposes itself as buyer to every seller and seller to every buyer. You are no longer exposed to the person on the other side of your trade. This is the single most under-appreciated piece of market infrastructure and it is the reason a retail investor can trade with a stranger and not care who they are.
  • The depository. NSDL or CDSL. Shares exist as book entries; settlement moves them between demat accounts on T+1.

Novation, and why the clearing corporation is the most important institution here

The legal term is novation: the original contract between you and the counterparty is replaced by two contracts, each with the clearing corporation.

This is what margin is actually for. The clearing corporation has taken on your counterparty risk, so it collects collateral from you to cover it, and it maintains a default waterfall — the defaulter's margin, then the defaulter's contribution to the guarantee fund, then the clearing corporation's own capital, then the mutualised fund contributed by all members.

If you can explain novation and the default waterfall in an interview for any clearing, risk or operations role, you are ahead of most candidates, because it is the mechanism the whole market's safety rests on and very few people outside the function have read about it.

The US path, and why it looks so different

An American retail order usually does not go to an exchange. The broker routes it to a wholesaler — a small number of very large market-making firms — which internalises it, filling from its own inventory at or better than the national best bid and offer. In return the wholesaler frequently pays the broker for that order flow.

This arrangement is the source of most American market-structure argument. The case for it: retail orders get price improvement over the displayed quote, execution is instant, and it funds zero-commission brokerage. The case against it: the broker's incentive is to route where it is paid rather than where the customer does best, the improvement is measured against a benchmark the wholesaler helps determine, and it removes retail flow from the public order book — which arguably widens spreads for everyone else.

You do not need a position on this. You do need to be able to state both sides, because it will come up in any US market-structure conversation and having a memorised opinion is worse than having a clear map.

Where an order can die, which is the operationally useful part

Rejection pointTypical reasonWho fixes it
Broker RMSInsufficient margin, banned scrip, product not allowedClient or broker ops
Broker RMSOrder value or quantity above a fat-finger limitBroker risk
Exchange gatewayPrice outside the band, wrong tick or lot sizeWhoever built the order
Exchange gatewayOrder-to-trade ratio breach, message rate limitThe algo team — this one carries a monetary penalty
Matching engineNothing to match against (a limit order simply rests)Not a rejection at all — a common confusion
ClearingPosition limit breach at member or client levelRisk
SettlementSecurities not delivered — goes to auction in IndiaOperations

Order types, and the one that costs beginners the most

  • Market — execute now at whatever price is available. You are buying immediacy and paying for it with the spread and whatever depth you consume. In an illiquid instrument this can be catastrophic, which is why Indian brokers apply protection ranges.
  • Limit — execute at this price or better. You may not execute at all. You have swapped price certainty for execution uncertainty, which is a real trade rather than a free improvement.
  • Stop / stop-loss — becomes a market or limit order when a trigger price prints. Note that a stop-loss market order in a gapping market executes far below your trigger, and a stop-loss limit order may not execute at all. Both failure modes have ended accounts.
  • Immediate-or-cancel, fill-or-kill — execute what you can now, cancel the rest, or execute all of it now or none. Used constantly by algorithms and almost never by humans.
  • Iceberg / disclosed quantity — show a small part of a large order. The hidden part loses time priority when it refreshes, which is the cost you pay for concealment.

Say it well

A strong answer to “walk me through an order” names the eight stages, then adds one thing that shows you have thought about it. The best available addition is novation: “and the moment it matches, the clearing corporation becomes the counterparty to both sides, which is why margin exists and why a default is a liquidity event for the clearing corporation rather than a loss for the person you traded with.”

Check yourself

What is novation?The clearing corporation replaces the bilateral contract with two contracts, becoming buyer to every seller and seller to every buyer. It is why counterparty risk is mutualised and why margin is collected.
Why does price-time priority make latency valuable?Because time is the tie-break at a given price. Being faster does not get you a better price; it gets you ahead of everyone else offering the same price.
Why does a US retail order often never reach an exchange?It is internalised by a wholesaler, which fills it from inventory at or better than the NBBO, frequently paying the broker for the flow.
Your stop-loss triggered at 100 and filled at 94. Is that a broker failure?No — a stop-loss market order becomes a market order at the trigger and takes whatever liquidity exists. In a gap there is nothing at 100. A stop-limit would have protected the price and risked no fill at all.
← All chaptersThe order book, the spread, and how a price is actually made →