How Stock Exchanges Work
Exchanges sort orders by price and time and match whatever crosses. That single mechanism explains fills, slippage, halts and why OTC stocks behave so differently.
A stock exchange is a matching engine: it sorts buy and sell orders by price, then by time, and pairs whatever crosses. The last trade becomes the quoted price. The exchange takes no view on value. It supplies the rules, the technology and the disclosure regime that make a share tradable between strangers, and the depth of its order book decides whether your order fills cleanly or moves the price against you.
What to remember
- The quoted price is the output of matching, not a valuation. It reflects the last trade, which may have been 100 shares.
- A large market order walks up the book: 5,000 shares against thin depth can fill 10 cents above the offer and cost $500 in slippage.
- The real product an exchange sells is enforced disclosure. That is what OTC markets mostly lack.
- Check average daily volume before sizing. Getting in is easy; getting out requires a buyer to be there on your day.
Step 2 of 10 on Stocks & Indices Basics
An exchange is a matching engine, not a valuer
A stock exchange is an organised venue that pairs buy orders with sell orders under published rules. It does not decide what a company is worth, does not hold an opinion on it, and has no view on whether your order is sensible. It takes the orders that arrive, sorts them by price and then by time, and matches whatever crosses. The price you see quoted is the output of that sorting, nothing more.
Understanding this removes a whole class of confusion. When a stock falls 8% on no news, the exchange did not reprice it. Sellers arrived at prices low enough to meet the bids that were resting there, and the last of those trades became the number on your screen.
Walking a 5,000 share order through a real order book
The book is a queue of resting orders at each price. Suppose the sell side looks like this.
| Price | Shares offered | Cumulative |
|---|---|---|
| $47.84 | 1,200 | 1,200 |
| $47.86 | 800 | 2,000 |
| $47.91 | 1,500 | 3,500 |
| $48.05 | 2,600 | 6,100 |
Send a market order for 5,000 shares and you do not get $47.84. You take all 1,200 there, all 800 at $47.86, all 1,500 at $47.91, then 1,500 of the 2,600 sitting at $48.05. The average fill works out at about $47.94, roughly 10 cents above the quoted offer, and the screen now shows $48.05 as the last price. You moved the stock yourself, and paid for the privilege.
On 5,000 shares that ten-cent slippage is $500. On a liquid mega-cap with 40,000 shares resting at the top of the book, the same order would have filled entirely at $47.84 and moved nothing. Liquidity is not an abstraction. It is the depth of that table, and it is the difference between a clean fill and an expensive one.
What a listing forces a company to do
In exchange for access to public capital, a listed company accepts obligations that a private one does not carry.
- Periodic disclosure. Audited annual accounts and, in most markets, quarterly results on a published timetable.
- Material event reporting. A change that a reasonable investor would want to know about has to be announced to the whole market at once, not briefed to selected holders.
- Continued listing standards. Minimum share price, minimum public float, governance requirements. Fail them and the company is moved down or delisted, which is why reverse splits exist.
This disclosure regime is the real product an exchange sells. It is what makes a share in a company you have never visited a thing a stranger is willing to buy from you at a known price within seconds.
9 more sections in MarketPro
Finish this lesson in MarketPro
The rest of How Stock Exchanges Work, a quiz that checks it landed, and your place kept in the curriculum.
- 9 more sections of this lesson
- All 320 lessons, with no cap and no paywall
- Free on any account, including a free one
Same account as the app · No install · Free to start
Or scan with your phone camera to get the MarketPro app.
Free account, no card needed.
Not investment advice. Past performance is not indicative of future results.
Run the numbers while this is fresh
Work it through on your own position size. Nothing leaves your browser and there is no sign-up: Profit & loss calculator, Compounding calculator.
How Stock Exchanges Work: questions
How does a stock exchange decide the price of a share?
What is the difference between an exchange and an OTC market?
Why did my market order fill at a worse price than the one I saw?
The whole academy is free in MarketPro
All 320 lessons, 12 guided paths, quizzes and a daily streak. Free on every account, in the app or your browser, with vetted free signals alongside it.
Same account as the app · No install · Free to start
Not investment advice. Past performance is not indicative of future results.