Back
📈 Investing & Markets

What Happens When You Buy a Stock — Order Routing, Matching, and Settlement

The complete lifecycle of a stock purchase: order routing, matching, clearing, and T+1 settlement explained step by step.

2 min read 0
⚠️

Educational content only — not personalized financial, legal, or tax advice.

What Happens When You Buy a Stock — Order Routing, Matching, and Settlement

When you open a trading app, search for a ticker, and press "Buy," a trade confirmation usually pops up within milliseconds. Beneath that clean interface operates one of the most sophisticated electronic market infrastructures in history.

Step 1: Order Placement and Pre-Trade Checks

Your broker captures the ticker symbol, quantity, order type (Market or Limit), and time-in-force. The broker verifies your cash balance or available margin. If buying inside an IRA or 401(k) plan, the broker also checks contribution rules.

Step 2: Smart Order Routing, Internalization, and Dark Pools

Brokers use Smart Order Routers (SOR) to analyze liquidity and execution costs across all available venues. Orders may route to:

  1. Market Maker Wholesalers: Firms like Citadel Securities buy retail order flow (Payment for Order Flow) and fill from inventory, often providing price improvement.
  2. Lit Exchanges: NYSE or NASDAQ, where orders are publicly visible on an electronic order book.
  3. Dark Pools: Alternative Trading Systems where orders execute without displaying pre-trade quotes.

Step 3: Trade Execution and Order Matching

Under SEC Regulation NMS, trades cannot execute below the National Best Bid and Offer (NBBO). Matching engines pair buy and sell orders using Price-Time Priority rules.

Step 4: Clearing and Netting via the NSCC

The National Securities Clearing Corporation (NSCC) verifies all execution files and performs novation—becoming the buyer to every seller and vice versa. Continuous Net Settlement nets down transactions across the industry, reducing daily liquidity requirements by over 98%.

Step 5: T+1 Settlement and Custodial Record-Keeping

Since May 2024, U.S. equity markets use T+1 settlement. Physical custody rests with the Depository Trust Company (DTC). Most investors hold securities in "Street Name" registration.

Applying Market Mechanics to Long-Term Wealth Building

Whether buying individual stocks or ETFs, market mechanisms operate identically. By maintaining disciplined strategies like dollar-cost averaging and proper diversification, investors leverage global infrastructure to accumulate long-term financial independence.