The order book and how matching works
In short
The order book lists resting limit orders by price. Orders are matched by price first and by arrival time second, so orders at the same price form a queue. Orders offering the same price can be filled, half-filled or ignored, depending on when they arrived. The book does not show hidden size, stop orders, other venues or anyone's intent. Displayed depth can be withdrawn at any moment, and it tends to vanish just when it would matter.
Scope. This article explains what an order book is, the rules by which orders are matched, and the several respects in which the book shows less than it appears to. MarketClue offers no interpretation of the order book and no inference from it. It accepts, routes and executes nothing. Prices and quantities are small illustrative figures describing no actual security. United States market structure, as described at 17 August 2026.
The order book is the list of resting limit orders, arranged by price. It is the closest thing a market has to a visible mechanism. Reading it correctly means knowing what is missing from it.
The matching rule
Most continuous markets match on price-time priority, and the two words are ranked in that order.
Price first. A better price is served before a worse one. The highest bid and the lowest ask trade first, whenever either arrived.
Time second. Among orders at the same price, the one that arrived first is served first. This is a queue, and place in it is set by arrival.
What the queue does
Suppose three orders rest at one price, in the order they arrived.
| Order | Quantity | Shares ahead of it in the queue |
|---|---|---|
| First | 300 | 0 |
| Second | 200 | 300 |
| Third | 500 | 500 |
A fourth order joining now sits behind all 1,000 shares. And 1,000 shares must trade at that price before any of it fills.
Worked example: 400 shares arrive, and the same price produces three different outcomes. The first order fills completely at 300. The second fills 100 of its 200 — a partial. The third receives nothing at all. All three offered the identical price; the only difference between being filled, half-filled and ignored was when each arrived. Two consequences follow and neither is obvious from looking at a book. First, "there are 1,000 shares bid at that price" does not mean a seller of 1,000 will trade with those particular parties — it means the aggregate is 1,000, distributed across a queue whose order is invisible in the total. Second, a resting order's real prospect of filling depends on its queue position, which standard retail displays do not show; only participants with order-level data can reconstruct it. MarketClue offers no queue-position estimate and no inference about fill likelihood. Figures are illustrative and describe no actual security.
Four things the book does not show
Hidden and reserve quantity. Many venues let an order display less than its full size. So the visible quantity at a price can understate what is actually available.
Stop orders. As Stop Orders and Stop-Limit Orders sets out, these are typically held away from the book and released only when triggered. So a quantity that will appear the instant a price is reached is not in the book beforehand.
Everywhere else. The book at one venue is not the market. Orders for the same security rest at several competing venues at the same time. Which of them an order reaches is a routing question, not a property of the security.
Anything about intent. The book records prices and quantities. It records nothing about why they are there or how long they will stay.
Worked example
The property that matters most. Displayed depth is revocable. A resting order is a standing offer that can be withdrawn at any moment before it is matched, so the book describes what participants are currently willing to do — not what will be there when an order arrives. And the withdrawal is most likely when conditions change, because the same information that makes someone want to trade makes the party on the other side want to stop offering. So the depth visible in calm conditions is a poor guide to the depth available in the moment it would matter — which is the same structural asymmetry that appears in Limit Orders as adverse selection and in Order Duration and Time in Force as the aging of a resting instruction. MarketClue draws no conclusion from any book state and offers no way to act on one.
How an incoming order interacts with it
A market order is matched against the best opposing prices in turn until its quantity is complete. That is the book-walking arithmetic worked out in Market Orders.
A limit order that crosses the opposing side is matched at once, as far as quantity is available at its limit or better. A limit order that does not cross joins the book and waits. It takes its place at the back of the queue for its price.
That is the whole difference between using and supplying immediacy, put in mechanical terms. An order that crosses takes what is offered. An order that rests becomes what is offered.
Check understanding
1 of 5
How do most continuous markets match orders?
Frequently askedCommon questions
8 questions
What is the order book?
The list of resting limit orders arranged by price. It is the closest thing a market has to a visible mechanism. Reading it correctly means knowing what is missing from it.
How are orders matched?
On price-time priority, ranked in that order. A better price is served before a worse one, whenever each arrived. Among orders at the same price, the earliest arrival is served first.
Does queue position matter?
A great deal. In the illustration, 400 shares arrive against three resting orders. They fill the first completely, fill the second partly, and leave the third with nothing. All three offered the same price; the only difference was when each arrived.
Can I see my queue position?
Standard retail displays do not show it; only participants with order-level data can reconstruct it. So a resting order's real chance of filling depends on something that is usually invisible to the holder. MarketClue offers no queue-position estimate and no inference about fill likelihood.
Does the displayed quantity tell me what is available?
Not reliably. Many venues let an order display less than its full size, so visible quantity can understate what is there. Stop orders are typically held away from the book entirely and appear only when triggered.
Is one venue's book the whole market?
No. Orders for the same security rest at several competing venues at the same time. Which one an order reaches is a routing question, not a property of the security.
What is the key limitation?
That displayed depth can be withdrawn. A resting order can be pulled at any moment before matching. So the book shows what participants are currently willing to do, not what will be there when an order arrives. And withdrawal is likeliest when conditions change.
What is the difference between an order that crosses and one that rests?
An order that crosses takes what is offered; an order that rests becomes what is offered. That is the difference between using and supplying immediacy, put in mechanical terms.
ReferencesWhere this comes from
- SEC — Trade Execution: What Every Investor Should Know (accessed 2026-08-18)
- Investor.gov (SEC) — Investor Bulletin: Understanding Order Types (accessed 2026-08-18)
- SEC — Regulation NMS: Minimum Pricing Increments, Access Fees, and Transparency of Better Priced Orders (2024) (accessed 2026-08-18)
Finished reading?
Mark it complete once the answer holds without scrolling back up.
Ask MarketClue AI about this lesson
The question carries this lesson as its context. MarketClue AI needs an account.
MarketClue does not provide financial advice.
Next on your list
After that
Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.