WhitmanTrading

What Is a Stock Exchange?

A stock exchange is a regulated venue that matches buy and sell orders under published rules. It sets listing standards for the companies traded on it, runs the opening and closing auctions, and publishes the official price and volume that charts are built from.

How it works

A candlestick chart of the site's shared price history. The headline on the chart reads: An exchange is a matching engine with rules round it.
An exchange is a matching engine with rules round it. Illustrative chart - not real market data.

A stock exchange does two jobs. It matches orders, and it enforces rules about who may trade, what may be traded, and how. Strip away the history and the building, and what remains is a computer applying a published priority rule to a queue.

The matching rule is price first, then time. A better price goes ahead of a worse one. Among orders at the same price, the earlier one fills first. That is the whole mechanism, and it is the same rule described on the order book page.

A 72-bar candlestick section of the shared price history. The headline on the chart reads: The book is the exchange - everything else is a picture of it.
The book is the exchange - everything else is a picture of it. Illustrative chart - not real market data.

The book is the exchange in the only sense that matters to a trader. Charts, tickers and news feeds are all downstream representations of the resting orders in that queue.

A long-horizon candlestick view of the same price series. The headline on the chart reads: A listing is a standard to meet, not a judgement on the price.
A listing is a standard to meet, not a judgement on the price. Illustrative chart - not real market data.

The second job is listing. An exchange sets requirements — minimum share price, market value, number of shareholders, governance and reporting standards — and companies that meet them may be traded there.

A listing is a floor, not an endorsement. It says a company clears a published bar. It says nothing about whether the current price is sensible, and companies fall below the standards and get delisted regularly.

The two auctions

A candlestick chart of the site's shared price history, with the session boundaries marked. The headline on the chart reads: Six and a half hours of continuous trading, then an auction.
Six and a half hours of continuous trading, then an auction. Illustrative chart - not real market data.

A US equity session runs six and a half hours, and continuous trading is only part of it. The session opens with an auction and closes with another, and those two events are not the same kind of thing as the trading in between.

A gently rising stretch of the long price series, with the largest opening gap marked. The headline on the chart reads: Two auctions a day set two of the four prices on every bar.
Two auctions a day set two of the four prices on every bar. Illustrative chart - not real market data.

An auction collects orders and strikes a single price that maximises the quantity able to trade. Everyone participating gets that one price. It is a fundamentally different mechanism from the continuous queue, and it produces two of the four numbers on every daily candle.

That is why an opening price is not the first tick of a trend. It is a clearing price for the accumulated overnight interest, and it can sit well away from the previous close without a single continuous trade having happened in between.

The closing auction is the larger of the two. Index funds, benchmarked portfolios and anything that must transact at the official close all meet there, which concentrates enormous size into one print.

A candlestick series containing several opening gaps, with the largest opening gap marked. The headline on the chart reads: The open is an auction price, not the first trade of a trend.
The open is an auction price, not the first trade of a trend. Illustrative chart - not real market data.

In practice: one listing, many venues

A candlestick chart with a volume histogram beneath it, with the volume histogram emphasised. The headline on the chart reads: And the exchange is where the official volume comes from.
And the exchange is where the official volume comes from. Illustrative chart - not real market data.

Exchanges produce the official record. The volume figure under a candle, the high and low, the closing price used for valuations and index calculations — all of it originates here and is consolidated across venues.

A flat but volatile stretch of the long price series. The headline on the chart reads: Off-exchange the same share trades with less around it.
Off-exchange the same share trades with less around it. Illustrative chart - not real market data.

Not everything trades on one. Over-the-counter markets handle securities that do not meet listing standards, and off-exchange venues handle a large share of listed volume too. The same share can trade in several places at once, which is why a consolidated tape exists.

Competition between venues is the reason there is no single “the exchange”. A US listed stock trades across many venues simultaneously, and the best bid and offer is assembled from all of them. The listing exchange is where the company is registered, not where every trade happens.

Fee structures differ between venues and shape routing. Some pay for resting orders and charge for removing them; others do the reverse. Those few hundredths of a cent per share are invisible to a retail trader and decisive to a professional one.

When it fails

A sideways, range-bound candlestick series. The headline on the chart reads: The exchange guarantees a match, never a good one.
The exchange guarantees a match, never a good one. Illustrative chart - not real market data.

The exchange promises execution, not quality. A market order sent into a thin book will be matched against whatever is there, at whatever price that is. The machine did its job perfectly and the fill is still poor.

Auctions are not immune either. An opening auction on light interest can strike a price that looks nothing like where the stock trades ten minutes later, and orders left in it get that price.

And the rules can stop trading entirely. Halts for news, for volatility bands, or for market-wide circuit breakers all suspend matching. During a halt no order fills, including the stop you were relying on.

The last failure is treating the listing as due diligence. A company can meet every standard on the day it lists and be a poor investment throughout. The exchange checked a checklist; it did not form a view.

Two more things an exchange is often assumed to do and does not. It does not hold your shares — your broker does that, and the ownership record sits with a central depository. And it does not set the price: it publishes the price its own matching produced, which is a record rather than a decision.

The distinction matters when something goes wrong. If a broker fails, the question is about the broker’s custody arrangements and the investor protection scheme, not about the exchange. Traders routinely address complaints to the wrong institution because the exchange is the visible name.

The exchange also has no view on why a price moved. It reports that a quantity traded at a price because two orders met under its priority rule. Every explanation attached to that number afterwards comes from somewhere else, and most of it is added by people who were not involved in either order.

A candlestick chart of the site's shared price history, annotated with the round-trip cost. The headline on the chart reads: Listed or not, the round trip is 2% of a bar.
Listed or not, the round trip is 2% of a bar. Illustrative chart - not real market data.

The original data

12 of the 24,971 videos measured for this site cover stock exchanges, at a median of 66,045 views. That is the fourth-highest median in the market-mechanics group, on a topic almost every other page here quietly assumes you already understand.

A candlestick chart of the site's shared price history, cut short at the decision bar.
Ten minutes before the closing auction. In, or wait? Illustrative chart - not real market data.

The most useful thing to carry away is the auction point. Two of the four prices on every daily candle are struck by a mechanism that works differently from the rest of the day, and knowing which two changes how much weight an open or a close deserves.

The order book is the queue an exchange operates. Trading sessions is where the hours and their consequences are set out. And market makers are the participants who keep quotes on both sides of that queue through the day.

What I actually do

For years I treated the open and the close as just more bars. Learning that both are auctions rather than continuous trading changed how I size around them more than any indicator ever did — they are the two moments the whole market agrees to meet at once.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.