How Orders Flow

Your buy order doesn't go straight to the exchange. It passes through your broker's risk management system, an OMS, possibly an algo engine, and finally the exchange matching engine. Each step matters.

1. The Journey of Your Buy Order

When you tap "Buy" on your broker's app, your order doesn't go straight to the NSE matching engine. It travels through a complex chain of systems, each adding microseconds (or seconds) of delay and each representing a potential point of failure.

2. Step-by-Step Order Flow

  1. Your Device: You place the order via mobile app, web, or terminal
  2. Broker's OMS (Order Management System): Validates the order (funds check, position limits, risk parameters)
  3. Broker's Risk Management System (RMS): Checks if the order violates any risk rules (exposure limits, banned scripts, etc.)
  4. Exchange Gateway: The broker's system routes the order to NSE/BSE via their API
  5. Exchange Matching Engine: The order enters the central limit order book (CLOB)
  6. Trade Execution: If a matching order exists, the trade executes immediately
  7. Trade Confirmation: The exchange sends the trade confirmation back through the chain
  8. Clearing House: NSCCL/ICCL processes the trade for settlement
  9. Demat Credit: Shares are credited to your demat account on T+1

3. What Happens at Each Stage

Broker's RMS (Critical Checkpoint)

The RMS is where most retail orders face delays or rejections. It checks:

  • Do you have sufficient funds/margin?
  • Are you trying to trade a stock in the banned list for F&O?
  • Have you exceeded your daily loss limit?
  • Is the order size within permissible limits?

RMS rejections are the #1 reason orders don't reach the exchange.

Exchange Matching Engine

NSE's matching engine uses price-time priority:

  • Highest bid price gets priority among buyers
  • Lowest ask price gets priority among sellers
  • At the same price, the order that arrived first executes first

This is why speed matters for high-frequency traders — being first in the queue at a given price means your order executes before others.

4. Order Routing: NSE vs BSE

Most brokers have smart order routing that automatically sends your order to the exchange with:

  • Better price (tighter spread)
  • Deeper liquidity (more shares available at the best price)
  • Lower impact cost

For liquid large-caps, the difference is negligible. For illiquid stocks, routing to the right exchange can save you significant slippage.

5. Latency: Why Speed Matters (and Doesn't)

Total round-trip time from your click to trade confirmation:

  • Retail mobile app: 200-500 milliseconds
  • Retail web platform: 100-300 milliseconds
  • Broker terminal: 50-150 milliseconds
  • Co-located algo: Under 1 millisecond

For long-term investors, this doesn't matter. For scalpers and day traders, it matters enormously. A 100ms delay can mean the difference between capturing a breakout and chasing it.

6. Common Order Flow Problems

ProblemCauseSolution
Order rejectedRMS check failureCheck margin, limits, and banned scripts
Order pendingNo matching counterpartyUse market order or adjust limit price
Partial fillInsufficient liquidity at your priceSplit order or accept partial execution
SlippagePrice moved before executionUse limit orders instead of market orders

💡 Key Takeaway

Your order passes through 5+ systems before execution. The broker's RMS is the most common rejection point. For better execution, understand your broker's routing logic and use limit orders in illiquid stocks.