What is an order book?
An order book is a list of buy and sell orders that have not yet executed in a trading market. It records the prices buyers are willing to pay and quantities they want to buy, along with the prices sellers are willing to accept and quantities they want to sell. The trading system uses these orders to find buyers and sellers who can trade with each other.
It differs from a trade history: the history records completed trades, while the book records unfilled buy and sell orders waiting for counterparties to accept their prices. New resting orders, executions, and cancellations continually change the list.
What each price level records
A public order book usually aggregates quantities by price level. One level can contain multiple orders from different traders. Its total is the remaining quantity available at that price, without necessarily identifying individual orders or their priority at the same price.
The highest buy level is the best bid level: its price is the best bid price, and its quantity is the best bid size. The lowest sell level is the best ask level, with the best ask price and best ask size. The best bid price and best ask price are also called the best bid and best ask. The second bid, second ask, and subsequent levels follow in price order.
Suppose a market quotes prices in USDT, the quote asset in this example:
| Level | Price (USDT/asset unit) | Quantity awaiting execution (asset units) |
|---|---|---|
| Best ask | 100.1 | 1 |
| Second ask | 100.2 | 2 |
| Best bid | 99.9 | 2 |
| Second bid | 99.8 | 3 |
The best bid is 99.9 and the best ask is 100.1. These prices do not match, so the orders remain in the book. The numbers are illustrative, not live market data. The best bid is determined by the highest buy price and the best ask by the lowest sell price, regardless of their positions in a table.
The aggregate quantity at one price does not tell you where your individual order stands in the queue. Which same-price orders execute first depends on that market’s priority rules; the total quantity at that level alone cannot establish this.
When does an order execute, and when does it rest in the book?
A new order can execute if it accepts the price of an existing counterparty order, executable quantity is available, and its settings allow execution. If prices do not currently match, an order permitted to remain becomes a resting order in the book, waiting for another buyer or seller to trade with it.
Specifically, the price condition is met when a new buy order’s maximum price is at least an existing ask, or a new sell order’s minimum price is at most an existing bid. The amount that can execute also depends on the quantity available at the corresponding quote.
Using the table above, a limit buy order willing to pay at most 99.9 cannot match an ask of 100.1. A limit order specifies a maximum buying price or minimum selling price and rests in the book if it is allowed to wait. A new buy order accepting 100.1 may first fill the 1 unit at that level. Additional quantity requires other quotes within its limit; the entire order does not automatically fill at the first level’s price.
Orders can also fill only partially. For example, a sell order starts with 5 units and fills 2. If it is allowed to remain, the other 3 units stay in the book awaiting a buyer. If the seller subsequently cancels the remainder, those 3 units are removed, but the 2 already executed are not reversed. If the order requires immediate cancellation of its unfilled portion, the remaining 3 units are removed rather than waiting for a later buyer.
A public snapshot does not guarantee execution
A snapshot records the quotes visible at one moment. Other traders executing first, orders being canceled, or new orders arriving can change the quantity available for later trades. A large unfilled buy order is not a completed inflow of funds.
Some conditional orders have not entered the ordinary order book before they trigger, so a public snapshot does not represent all potential trading intentions. Whether a conditional order enters the book depends on its trigger conditions and market rules; an untriggered intention is not an order already available to match.
Different platforms have their own order books even when they offer the same pair. A trade’s quantity and price depend on actual execution in its own market; a quote on another platform is not an execution commitment.
Related terms
Learn more about bid price, ask price, and market depth, or return to the cryptocurrency glossary.
References
Digitale bezittingen zijn onderhevig aan volatiliteit en zijn niet verzekerd. Geen financieel of beleggingsadvies. Niet alle producten en services worden in alle landen aangeboden. Uitsluitingen en Algemene voorwaarden zijn van toepassing.
© 2026 OKX. Dit artikel mag in zijn geheel worden gereproduceerd of verspreid, of fragmenten van 100 woorden of minder van dit artikel mogen worden gebruikt, op voorwaarde dat dergelijk gebruik niet-commercieel is. Bij elke reproductie of distributie van het volledige artikel dient duidelijk te worden vermeld: "Dit artikel is afkomstig van © 2026 OKX en wordt met toestemming gebruikt." Toegestane fragmenten dienen te verwijzen naar de titel van het artikel en moeten een bronvermelding bevatten, zoals: "Artikelnaam, [auteursnaam indien van toepassing], © 2026 OKX". Sommige inhoud kan worden gegenereerd of geholpen door kunstmatige intelligentie (AI) tools. Afgeleide werken of ander gebruik van dit artikel zijn niet toegestaan.









