What is an order book, and how do market and limit orders work?
An order book is an exchange's list of buy orders (bids) and sell orders (asks) waiting to be matched.1,2 A market order trades straight away at the best price available, while a limit order only trades at your price or better, and may not trade at all.3
Bids, asks and the spread
The bid is the highest price a buyer will pay right now. The ask is the lowest price a seller will accept.4 The bid is almost always lower than the ask, and the gap between them is called the spread.4
Chainlink's documentation explains that bid and ask prices sit in an exchange's order book, and stand for real orders that buyers and sellers have sent in.1 Kraken, as one example of a crypto exchange, describes its platform as a central limit order book with a matching engine that pairs buyers with sellers.2
The mid price
The mid price is halfway between the best bid and the best ask.1 It is a useful reference point, but Chainlink notes it is not a price at which trades should be carried out. Real trades must match an open bid or ask.1
Chainlink adds that a narrower spread usually means a more liquid market. A wider spread can mean less liquidity or more volatility.1
Mid price = (best bid + best ask) ÷ 2. Spread % = (best ask − best bid) ÷ mid price × 100. If the bid is $0.99 and the ask is $1.01, the mid is $1.00 and the spread is 2 cents, or 2%. The quizzes use this method.1,4
Who gets filled first
Exchanges set their own matching rules. Kraken's rules, for example, match the best price first. If several orders share the same price, the earliest one goes first.2 This is often called price-time priority.2
Market orders
A market order buys or sells at the best price available.3 It is usually carried out straight away, but the price is not guaranteed.3
FINRA says a market order gives you the most certainty that your trade will happen.5 The downside is that you might not get the price you saw, especially when prices move fast.5 The SEC adds that the last traded price is not necessarily the price a market order will get.3
Limit orders
A limit order buys or sells only at a set price or better.3 A buy limit order can only trade at the limit price or lower. A sell limit order can only trade at the limit price or higher.3
The catch: a limit order is not guaranteed to trade. It only fills if the market reaches your price.3 FINRA says a limit order can sit unfilled if there are not enough buyers or sellers at your price or better.6
Stop orders
A stop order waits until the price reaches a level you choose, called the stop price. Then it becomes a market order.3 So the price you get can be well away from the stop price, depending on the orders available at that moment.3
Makers and takers
Some exchanges, Kraken among them, charge different fees depending on what your order does. On Kraken, an order that matches straight away against the book pays a "taker" fee, because it takes liquidity away. Market orders do this.2
An order that waits on the book, adding liquidity, pays a "maker" fee instead.2 To keep the maths simple, this module leaves fees out.
- Data Streams Liquidity-Weighted Bid-Ask Prices (LWBA). Chainlink documentation.
- Exchange Trading Rules. Kraken (Payward).
- Understanding Order Types (Investor Bulletin). Investor.gov, US Securities and Exchange Commission, Office of Investor Education and Assistance, 12 July 2017, updated 18 August 2026.
- Ask price (glossary). Investor.gov, US Securities and Exchange Commission.
- Order Types. FINRA (Financial Industry Regulatory Authority).
- Understanding Market Liquidity and Your Investments. FINRA (Financial Industry Regulatory Authority), 4 August 2026.
General education built from the publicly available sources listed above. Not financial, legal, tax or investment advice. Naming a company, project or regulator is not an endorsement either way. Last checked 2026-10-22. Terms and disclaimer.