Learn›Stocks›Market Mechanics
Stocks · Lesson 01 of 12

Market Mechanics

7 min read  ·  Intermediate  ·  Updated November 2026  ·  By

Every time you tap "buy" on an investing app, something remarkable happens in milliseconds. An order flies from your phone to a broker, onto an exchange, gets matched with a seller, executes at a price, and your account updates. You've bought a fraction of a company. Most people never wonder how that actually works. You should — because understanding it makes you a better investor.

What is an order book?

An order book is the live, constantly updated list of every buy order and sell order currently waiting to be matched for a stock on an exchange. Buy orders are listed at the highest price a buyer is willing to pay (the bid). Sell orders at the lowest price a seller will accept (the ask).

The difference between the bid and ask is called the spread. For a liquid stock like Apple or Vodafone, the spread might be a fraction of a penny. For a small company with few buyers and sellers, it could be several percent — which is an immediate cost you pay just to enter and exit the position.

Live order book example
Best ask (lowest seller)£102.40
Best bid (highest buyer)£102.35
Spread£0.05 (0.05%)

If you buy at market price, you pay the ask. If you sell, you get the bid. The spread is an invisible cost on every trade.

How a buy order travels 1. Your phone Tap buy 2. Broker Routes the order 3. Order book Bid 102.35 Ask 102.40 4. Matched Fills at 102.40 Spread 0.05 = your cost Buyers pay the ask
The path of a market buy order: phone, broker, exchange order book, then a match with a seller at the best ask. The gap between bid and ask is the cost of getting filled straight away.

What is the difference between a market order and a limit order?

A market order fills straight away at whatever price is available, while a limit order fills only at the price you set or better, and may not fill at all. A market order says "buy this stock right now at whatever the current price is." It executes immediately but you have no control over the exact price — during volatile markets, you might get a worse price than expected. This is called slippage.

A limit order says "buy this stock, but only if the price is £X or lower." It gives you price control but no guarantee of execution — if the stock never drops to your limit, the order just sits there unfilled.

For most people buying liquid ETFs or large-cap shares, a market order is fine. For anything less liquid — smaller companies, fast-moving moments — a limit order protects you from nasty surprises.

What does a market maker do?

A market maker is a firm that commits to always being ready to buy or sell a stock, quoting both a bid and an ask at the same time so that a buyer does not have to wait for a seller to appear. For every buyer there needs to be a seller, and they don't always show up at the same moment. Market makers solve this.

Market makers make money on the spread. Their role is crucial: without them, you might want to buy a stock and find no one willing to sell at a reasonable price. Liquidity would collapse.

During market panics, market makers can widen their spreads dramatically or pull back — one reason prices move more violently in crashes than fundamentals alone would justify.

Pre-market and after-hours trading

In the US, stocks can be traded before the official open (4–9:30am ET) and after close (4–8pm ET). Earnings reports usually drop after market close — companies don't want to disrupt live trading. The big gap you see when a company reports earnings overnight is set in after-hours trading before the next morning's open.

Practical takeaway: use market orders for liquid ETFs and large caps. Use limit orders for anything smaller or less liquid. Avoid trading in the first and last 15 minutes of the session when spreads widen. Transaction costs compound against you over time — minimise them by trading only when your strategy requires it.

What does the spread cost with real numbers?

Suppose a liquid share shows a bid of £49.90 and an ask of £50.10. You buy 100 shares at market, so you pay the ask: 100 × £50.10 = £5,010. If you changed your mind a second later and sold at market, you would receive the bid: 100 × £49.90 = £4,990. The round trip costs £20, which is 0.4% of the money you put in, before any commission.

Now imagine a thinly traded share with a bid of £9.50 and an ask of £10.00. You buy 500 shares at market for 500 × £10.00 = £5,000. Selling straight back at the bid returns 500 × £9.50 = £4,750. The round trip costs £250, or 5% of your stake.

The price has to rise from £9.50 to £10.00 just for you to get your money back, a move of roughly 5.3%. A limit order to buy at £9.60 would avoid paying the full ask, but if nobody sells at £9.60 the order never fills. That is the trade-off in one line: pay the spread for certainty, or hold out for price and accept you might miss it.

What the order book does not tell you

The displayed order book is only the orders people are willing to show. Large institutions often split big orders into small pieces or route them through venues that do not publish their quotes, so the visible depth can understate how much is really for sale. A tight spread at the top of the book also says nothing about depth: one buyer at £102.35 for 50 shares is a very different market from a queue of buyers for 50,000. A market order larger than the top of the book walks through several price levels, so the average fill is worse than the quoted ask.

Order books also freeze and gap: between the close and the next open, news can move the opening price far from the last print, and no limit order protects you from a gap that opens beyond your limit. Finally, a quote is a snapshot. By the time your order arrives, the book may have changed.

Market mechanics FAQ

Why did my trade fill at a different price from the one on screen?

The price shown in an app is usually the last trade or the mid-point between bid and ask, not the price you will get. A market buy fills at the ask, a market sell at the bid, and both can move in the fraction of a second it takes your order to arrive. That gap between the expected and actual price is slippage, and it is largest in fast or thin markets.

Can a limit order simply never execute?

Yes. A limit order only fills if the market reaches your price and there is enough volume at that level to get to your order in the queue. If a share trades at £10.05 all day and your limit is £10.00, nothing happens. Many brokers also cancel unfilled limit orders at the end of the day or after a set period, so check the order's expiry before assuming it is still working.

Do spreads matter if you plan to hold for years?

Less than they matter for frequent traders, but they are never zero. A 0.1% spread paid once on a holding kept for a decade is a rounding error. A 5% spread on an illiquid share is a real hurdle whatever your horizon, and you pay it again when you sell. The number of trades you make multiplies the cost, which is why the practical advice above is to trade only when your plan calls for it.

Sources and further reading: SEC Investor.gov: Introduction to investing · FINRA: Investing basics · NYSE: Market hours and holidays

📈

Practise market mechanics with virtual money

Open a free stock duel on RIP. and use market mechanics against a friend on live prices. No real money is at risk.

Download free on iOS →