Kuberhunt Edge

Ek Nayi Shuruaat,
Sahi Faislon Ke Saath.

Skip to content
Article
Where Does Your Order Go After You Click "Buy"?

Educational

Where Does Your Order Go After You Click "Buy"?

  • : pricediscovery
  • ordermatching
  • equilibriumprice
  • circuitlimits
  • supplyanddemand
  • stockmarketbasics
  • nseindia
  • bseindia

You tap buy, and within a second or two, your screen shows a confirmation. In that brief window, your order has actually travelled through several distinct systems. Here is the path it takes.

Stop 1: your broker's risk management system

The moment you submit an order, it does not go straight to the exchange. It first passes through your broker's own risk management system, which checks whether you have enough funds or margin for the trade, whether the order is within permitted limits, and whether the stock and quantity are valid. This check happens in milliseconds and exists to prevent orders that cannot actually be honoured.

Stop 2: the exchange's trading system

Once your broker's system clears the order, it is sent electronically to the exchange, NSE or BSE, depending on where your broker routes it, or wherever the stock is more liquid. The exchange's trading system receives the order, gives it a unique order number, and time stamps it precisely.

Stop 3: the order book

If your order cannot be matched immediately, it is stored in an order book, sorted by price time priority. All buy orders are lined up from the highest price down, and all sell orders from the lowest price up. Within the same price, the order that arrived first is placed first in the queue. This is why two people can place an order for the same stock at the same price and get filled at different times.

There are different books for different order types. A regular lot book holds ordinary orders. A stop loss book holds orders that are not active yet because their trigger price has not been reached. Once a stop loss order's trigger price is hit, it moves into the regular book and becomes a live order.

Stop 4: matching

The exchange's matching engine constantly checks whether the highest buy price and the lowest sell price can meet. The moment they do, a trade is executed automatically. A large order can match against several smaller orders on the other side, resulting in multiple partial trades that together fill your order.

Stop 5: what kind of order you placed changes the path

Market order. Executes immediately at the best available price. It offers certainty of execution but not certainty of price, especially in a fast moving or illiquid stock.

Limit order. Executes only at your specified price or better. It offers price certainty but not certainty of execution, since it may never get filled if the market does not reach your price.

Stop loss order. Sits inactive until a trigger price is reached, then becomes a live market or limit order. It is designed to limit losses, but in a fast moving stock it can still execute at a price worse than the trigger, especially during a gap.

Stop 6: confirmation comes back to you

Once a trade is executed, the confirmation travels back through the same chain in reverse, from the exchange to your broker's system to your app, which is why you see the update almost instantly.

Stop 7: the trade moves to clearing and settlement

Execution is not the end of the journey. Every executed trade is passed to the clearing corporation, which guarantees the trade and works out what you owe or are owed. On India's T+1 cycle, the shares are credited to your demat account the working day after the trade.

Why an order sometimes does not execute the way you expect

Insufficient liquidity. In a thinly traded stock, there may not be enough matching orders on the other side to fill yours completely.

Price band limits. If a stock has hit its circuit limit, no order can execute beyond that price, regardless of what you set.

Order rejected by risk checks. Orders outside your available margin, or outside certain price or quantity limits, can be rejected before they ever reach the exchange.

Market versus limit mismatch. A limit order priced far from the current market may sit unfilled indefinitely.

Quick Answers

Does my order go directly to the exchange? No. It first passes through your broker's risk management checks before being sent to the exchange.

Why did my market order fill at a different price than I expected? A market order takes the best available price at the moment of execution, which can move slightly between when you place it and when it fills, especially in a fast market.

What is the order book? It is where unmatched buy and sell orders wait, sorted by price and then by the time they arrived.

Why did my order not execute even though the price seemed right? Your order may have been behind others at the same price in the queue, or the stock may have hit a circuit limit.

Sources

Key Facts at a Glance

Stop

What happens

Broker risk check

Funds, margin and validity checked before the order leaves your app

Exchange trading system

Order receives a unique number and time stamp

Order book

Unmatched orders wait, sorted by price then time

Matching engine

Best buy and best sell price matched automatically

Order type

Market, limit or stop loss changes execution certainty

Clearing and settlement

Trade guaranteed and settled on T+1

Disclosure: This article is published by KuberHunt for informational and educational purposes. KuberHunt is a technology and research distribution platform connecting investors with SEBI registered Research Analysts and Investment Advisers. KuberHunt itself is not a Research Analyst or Investment Adviser and does not provide investment advice, create, or endorse any specific investment recommendation. This article does not constitute investment advice, and should not be used as the basis for any buy, sell, or hold decision on any security mentioned. Readers should consult a SEBI registered professional before making investment decisions.

Data Accuracy Note: This article describes the general order routing and matching framework as of September 2026. Exact system details can vary by broker and by exchange. Readers are encouraged to verify specifics with their broker and the official NSE and BSE websites.

Investments in securities are subject to market risks. Read all related documents carefully before investing. Registration granted by SEBI and certification from NISM in no way guarantee performance or assure returns.


Educational content, not investment advice. Markets carry risk; read the disclosures on any Reco before you act on it.

Investments in securities are subject to market risks. Read all related documents carefully before investing. Registration granted by SEBI and certification from NISM in no way guarantee performance or assure returns.