How stock markets actually work — exchanges, bid/ask, and liquidity — trading basics, chapter 2
Behind every trade is an order book matching buyers to sellers. What an exchange really is, why the bid/ask spread is a hidden cost, how liquidity decides whether you get a fair fill, and what market hours change.
The standard mental picture of "the stock market" is a single building where prices are set — the floor with people shouting, the big board, the closing bell. The picture is mostly a TV relic. The story is half-right: exchanges are real and central, but the actual mechanism is a piece of software called an order book that matches buyers to sellers continuously, and understanding it explains every "weird" thing a beginner notices — why your fill price differs from the quote, why some stocks move in clean steps and others jump, why the price at 9:30 a.m. lurches.
A more accurate frame: the market is a network of exchanges, each running an order book that lists everyone willing to buy and everyone willing to sell, ranked by price. Your order joins that list and either matches immediately or waits. This chapter walks through the order book, the bid/ask spread, liquidity, and market hours — the plumbing underneath chapter 1's "price is an agreement."
The TL;DR. An exchange is a matching engine. It keeps a live list of buy orders (bids) and sell orders (asks). A trade happens the instant the highest bid meets the lowest ask. The gap between them — the spread — is a real cost you pay on every round trip, and how big it is depends on liquidity: how many people are trading that stock right now.
What an exchange really is
An exchange — NYSE, Nasdaq, and others — is a regulated venue whose only job is to match orders fairly and report the resulting prices. It doesn't own the shares or set the price. It runs the order book and enforces the rules: orders are matched by price first, then by time (whoever bid a given price earliest gets filled first).
You never touch the exchange directly. Your broker is the licensed intermediary that holds your account, takes your order, and routes it to an exchange (or a similar venue). When you click "buy," a chain fires in milliseconds: your broker → a routing venue → the order book → a match → a confirmation back to you. The whole point of a broker like /stack/ibkr is to make that chain reliable and cheap.
The order book — bids, asks, and the spread
Picture two stacked lists for a single stock:
- Bids: everyone willing to buy, highest price at the top. "I'll buy 100 shares at $50.00."
- Asks (offers): everyone willing to sell, lowest price at the top. "I'll sell 100 shares at $50.05."
The bid is the highest price a buyer will currently pay. The ask is the lowest price a seller will currently accept. The difference — here $0.05 — is the bid/ask spread.
A trade happens when someone crosses the gap: a buyer accepts the $50.05 ask, or a seller hits the $50.00 bid. The price you see quoted on an app is usually the midpoint or the last trade — but you can't actually trade at a single "price." You buy at the ask and sell at the bid. That difference is a cost.
The spread is a tax you pay twice. If a stock is $50.00 bid / $50.05 ask and you buy then immediately sell, you're out $0.05 per share before the price moves at all — buy at $50.05, sell at $50.00. On a tight, liquid name that's a rounding error. On a thin one quoted $50.00 / $50.40, it's an 0.8% loss the instant you enter. Beginners bleed money to spreads they never notice.
Liquidity — the single most underrated concept
Liquidity is how easily you can buy or sell without moving the price. A liquid stock has thousands of orders stacked tightly around the current price; a small order fills instantly at a fair price. An illiquid stock has a thin, gappy book; even a modest order eats through several price levels and fills at a worse average price than quoted — this is called slippage (covered in chapter 3).
What drives liquidity:
- Size of the company. A megacap like $AAPL trades tens of millions of shares a day with a one-cent spread. A small, obscure name might trade a few thousand shares with a wide, jumpy spread.
- Volume right now. The same stock is far more liquid mid-morning than at 3:59 p.m. or in a holiday-thin session.
- News. Liquidity can evaporate exactly when you want it — during a crash or a halt, the buyers vanish and spreads blow out.
Practical rule for a beginner: trade liquid names while you learn. The mechanics are forgiving, the spreads are tiny, and you won't get punished for clicking at the wrong moment. QA's /stocks universe skews toward names with enough liquidity and thematic structure to behave predictably.
Market hours — and why they matter
US regular trading runs 9:30 a.m. to 4:00 p.m. Eastern, Monday to Friday, excluding holidays. Two things about that window:
- The open and close are the wild parts. Overnight, news accumulates while the market is shut. At 9:30, all of it resolves at once — the open is the single most volatile, widest-spread moment of the day. The close (the last few minutes) is the highest-volume moment, as funds rebalance. Beginners often get their worst fills in these windows.
- Pre-market and after-hours exist but are dangerous. You can trade outside regular hours, but liquidity is thin, spreads are wide, and a single order can move the price several percent. Earnings reports usually land here, which is why a stock can be up 8% "before the bell" and give it all back by 10 a.m.
A stock's official price doesn't update while the market is closed, but the next open prices in everything that happened overnight. That's why a stock can gap — open meaningfully above or below the prior close — with no trades in between. We cover gaps and how to read them in chapter 4.
Why this plumbing changes your decisions
Once the order book is real to you, several beginner mistakes disappear:
- You stop expecting to trade at the exact number on the screen.
- You start checking the spread before entering a thin name.
- You avoid market orders at 9:30 on illiquid stocks.
- You understand why your "buy at $50" sometimes fills at $50.07 — the book moved before your order arrived.
These aren't advanced skills. They're the difference between trading with the mechanism and fighting it.
What to watch as you start
- The spread on every name before you trade it. Tight (a cent or two on a liquid stock) is a green light. Wide (tens of cents, or a visible percentage) means trade smaller and use limit orders.
- The clock. The first and last 15 minutes are not where beginners should be clicking. The calm middle of the session is.
- Volume relative to normal. Unusually high volume means liquidity and volatility; unusually low means thin books and slippage risk.
- Whether a price move happened during regular hours or overnight. A gap with no intraday trades behaves differently from a move the order book actually processed.
Your broker is the door to all of this — order routing quality and spread access vary by broker. For US-retail order routing and a deep, liquid set of venues, see /stack/ibkr. The next chapter covers the actual orders you'll send into this book: market, limit, and stop.
Next in this series: Order types explained — market vs. limit vs. stop, how fills happen, and how to stop losing money to slippage.
See it live: /stocks — every name with current price and the liquidity profile of its cluster. Bubble shifts and rule-based alerts are part of /pro.
QuantAbundancia is educational research. Nothing here is investment advice. See /disclosures.
Related bubbles
Get the daily digest.
One email a day · alerts + bubble shifts + new research. Free during beta.
No spam. One email per day max. Telegram alerts coming with the paid tier.