Stock Market Mechanics: How Exchanges & Trading Work

Discover how stock exchanges operate, market makers facilitate trades, and the infrastructure behind every stock transaction

Table of Contents

Stock Exchange Structure

Stock exchanges are regulated marketplaces that facilitate the buying and selling of securities. They provide the infrastructure, rules, and oversight necessary for orderly markets. Understanding exchange structure is fundamental to grasping how stocks trade.

Primary Functions of Exchanges

Exchanges serve several critical roles in financial markets. They provide centralized venues for trading, ensuring fair and transparent price discovery. They maintain listing standards that companies must meet to have their shares traded. They establish and enforce trading rules to prevent manipulation and fraud. They disseminate real-time price information to the public, and they facilitate efficient order execution and settlement.

💡 NYSE vs. NASDAQ Structure

The NYSE traditionally used a hybrid model combining electronic trading with human specialists on a physical trading floor. NASDAQ operates as a fully electronic dealer network with no physical trading floor. Despite these structural differences, both exchanges now primarily use electronic matching systems.

Listing Requirements

Companies must meet specific criteria to list their shares on major exchanges. These requirements ensure listed companies meet minimum standards for size, profitability, and corporate governance. NYSE requirements include minimum market capitalization, minimum share price, financial standards, and corporate governance requirements. NASDAQ has similar but generally less stringent requirements, making it more accessible to growth companies and tech startups.

Order Matching Systems

Modern exchanges use sophisticated electronic systems to match buy and sell orders. These matching engines process millions of orders per second, ensuring efficient price discovery and execution.

How Orders Are Matched

Order matching follows price-time priority rules. The highest bid and lowest ask get priority. Among orders at the same price, those entered first get matched first. When a new market order arrives, it executes against the best available counterparty price. Limit orders join the order book and wait for matching prices.

Order Book Mechanics:

  • Buy orders (bids) arranged from highest to lowest price
  • Sell orders (asks) arranged from lowest to highest price
  • The spread is the gap between the highest bid and lowest ask
  • Incoming market orders execute against the best available price
  • The last execution price becomes the current stock price
  • Unexecuted limit orders remain in the book until filled or canceled

Order Types and Execution

Different order types interact with the matching system in distinct ways. Market orders execute immediately at the best available price by taking liquidity from the book. Limit orders add liquidity to the book by waiting at specified prices. Stop orders trigger when prices reach specified levels, then become market orders. Stop-limit orders trigger at stop prices but execute only within limit prices.

Bid-Ask Spread Explained

The bid-ask spread is the difference between the highest price buyers are willing to pay (bid) and the lowest price sellers will accept (ask). This spread represents the immediate cost of trading and varies significantly across stocks.

Understanding the Spread

If a stock shows a bid of $50.00 and an ask of $50.05, the spread is $0.05 or 5 cents. As a buyer, you pay the ask price ($50.05). As a seller, you receive the bid price ($50.00). This $0.05 difference is effectively a transaction cost that goes to market makers or other liquidity providers.

Stock Type Typical Spread Volume Trading Cost
Large-Cap $0.01-$0.05 Very High Very Low
Mid-Cap $0.05-$0.20 Moderate Low to Moderate
Small-Cap $0.10-$0.50 Lower Moderate to High
Micro-Cap $0.25-$1.00+ Very Low Very High

Factors Affecting Spread Width

Several factors determine spread width. Trading volume is the primary driver—higher volume stocks have tighter spreads. Volatility affects spreads; more volatile stocks have wider spreads due to increased risk for market makers. Price level matters; higher-priced stocks often have wider absolute spreads but similar percentage spreads. Company size and liquidity correlate with spread width.

⚠️ Spread Impact on Trading

Wide spreads significantly increase trading costs, especially for frequent traders. Always check the spread before placing market orders. In thinly traded stocks, the spread can be several percent of the stock price, making frequent trading prohibitively expensive.

Market Makers & Liquidity Providers

Market makers are firms or individuals that stand ready to buy and sell specific securities at quoted prices. They provide crucial liquidity that enables smooth market functioning.

How Market Makers Operate

Market makers continuously quote both bid and ask prices for assigned securities. They profit from the bid-ask spread by buying at the bid and selling at the ask. They maintain inventory of stocks to facilitate immediate trades. They assume risk by holding positions that may move against them. Market makers are obligated to maintain quotes even during volatile periods.

Market Makers vs. Brokers

Market makers trade for their own accounts, profiting from spreads. Brokers act as agents for customers, routing orders to exchanges or market makers. While distinct roles, many firms perform both functions. Your broker may route your order to a market maker who executes it, or directly to an exchange where it joins the order book.

💡 Designated Market Makers

The NYSE uses Designated Market Makers (DMMs) who have specific responsibilities for maintaining fair and orderly markets in assigned stocks. DMMs must step in to dampen volatility and provide liquidity when needed, even at a loss. NASDAQ uses competing market makers who vie for order flow.

Payment for Order Flow

Many retail brokers receive payment for routing orders to specific market makers. This practice, called payment for order flow (PFOF), allows brokers to offer commission-free trading. Critics argue it creates conflicts of interest, while supporters note it enables price improvement for retail investors. Understanding PFOF helps explain how "free" trading actually works.

Price Discovery Process

Price discovery is the process through which markets determine the fair value of securities based on supply and demand. This continuous process incorporates all available information into stock prices.

Continuous vs. Call Auction

Most trading occurs via continuous auction where trades execute whenever buy and sell orders match. Opening and closing prices often use call auctions where orders accumulate and execute simultaneously at a single clearing price. This batch processing can reduce volatility during high-volume periods.

Information Incorporation

Markets rapidly incorporate new information into prices. When earnings are released, thousands of traders simultaneously assess the news, placing orders that quickly adjust the stock price. Algorithmic trading accelerates this process, with computers parsing news and executing trades in milliseconds. The efficient market hypothesis suggests prices fully reflect all available information.

Market Impact and Slippage

Large orders can move prices against the trader, creating market impact. If you place a large market order, you may exhaust the best-priced shares and execute at progressively worse prices—this is slippage. Institutional investors use sophisticated algorithms to minimize market impact by breaking large orders into smaller pieces executed over time.

Modern Trading Infrastructure

Today's stock markets rely on sophisticated technology infrastructure that enables high-frequency trading, global connectivity, and instant execution.

Electronic Trading Platforms

Modern exchanges are essentially massive computer systems. Matching engines process millions of orders per second. Co-location services allow trading firms to place servers physically next to exchange servers, reducing latency to microseconds. Dark pools are private exchanges where institutional orders execute away from public markets. Alternative trading systems (ATS) compete with traditional exchanges for order flow.

High-Frequency Trading (HFT)

High-frequency trading uses algorithms to execute thousands of trades per second. HFT firms profit from tiny price discrepancies that exist for milliseconds. They provide liquidity but also face criticism for potential market manipulation and contributing to flash crashes. HFT now accounts for significant percentages of daily trading volume.

⚠️ Impact on Retail Investors

While HFT can provide tighter spreads and more liquidity, it creates an uneven playing field where speed matters enormously. Retail investors cannot compete with microsecond execution speeds. However, for long-term investors, HFT's impact is minimal since they're not competing on execution speed.

Regulation and Oversight

The SEC (Securities and Exchange Commission) oversees U.S. securities markets. FINRA (Financial Industry Regulatory Authority) regulates broker-dealers. Exchanges have their own rule enforcement. RegNMS (Regulation National Market System) established rules for trade-through protection and market access. These regulations aim to ensure fair, transparent, and efficient markets.

Settlement & Clearance

While trades execute in milliseconds, actual settlement—the exchange of shares for cash—takes longer. Understanding settlement is important for managing your trading activity.

T+2 Settlement Cycle

U.S. stock trades settle on a T+2 basis: trade date plus two business days. If you buy stock on Monday, settlement occurs Wednesday. Until settlement, you don't technically own the shares (though you have all economic rights). Until settlement, the seller retains ownership (though they've forfeited economic rights).

The Clearance Process

Clearinghouses sit between buyers and sellers, guaranteeing trade settlement. They net out offsetting trades to minimize actual transfers. They manage counterparty risk by requiring margin deposits. This infrastructure ensures trades settle even if one party defaults. The Depository Trust & Clearing Corporation (DTCC) is the primary U.S. clearinghouse.

💡 Cash Account vs. Margin Account

Cash accounts require you to have funds available before buying. Margin accounts allow borrowing for purchases before settlement of sales. The T+2 settlement cycle means you can sell stock and use those proceeds to buy other stock even before the sale settles—this is margin, even if you're not technically borrowing.

Good Faith Violations

In cash accounts, buying stock and selling it before the purchase settles can trigger good faith violations. These violations result from selling before having funds to cover the original purchase. Multiple violations can restrict your account to settled funds only. Understanding settlement cycles helps avoid these issues.

Circuit Breakers & Trading Halts

Markets have safeguards to prevent extreme volatility and panic selling. Circuit breakers temporarily halt trading to allow investors to assess information and make rational decisions.

Market-Wide Circuit Breakers

The S&P 500 triggers market-wide halts at three levels. A 7% decline from the previous day's close halts trading for 15 minutes (before 3:25 PM). A 13% decline triggers another 15-minute halt. A 20% decline halts trading for the remainder of the day. These were implemented after the 1987 crash and adjusted after the 2010 flash crash.

Single-Stock Circuit Breakers

Individual stocks can be halted for various reasons. Limit Up-Limit Down (LULD) prevents trades outside specified price bands. News pending halts occur when significant news is imminent. Regulatory halts address potential manipulation or information issues. Trading usually resumes within 5-10 minutes for LULD halts.

Historical Flash Crashes

The May 2010 Flash Crash saw the Dow Jones drop nearly 1,000 points in minutes before recovering. This event, triggered partly by algorithmic trading, led to enhanced circuit breakers. Several mini flash crashes have occurred since, highlighting ongoing challenges in regulating high-speed markets.

Circuit Breaker Benefits:

  • Prevent panic selling cascades
  • Allow time for information dissemination
  • Enable traders to reassess positions rationally
  • Prevent algorithmic trading errors from causing crashes
  • Maintain investor confidence in market stability

⚠️ Important Disclaimer

The information provided on this website is for educational purposes only and should not be considered financial advice. Always consult with a qualified financial advisor before making investment decisions. Past performance does not guarantee future results. Stock investing involves risk, including possible loss of principal.