Esta página destina-se apenas a fins informativos. Certos serviços e funcionalidades podem não estar disponíveis na sua jurisdição.

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.

Learn more about bid price, ask price, and market depth, or return to the cryptocurrency glossary.

References

Aviso legal
Este conteúdo é fornecido apenas para fins informativos e pode abranger produtos que não estão disponíveis na tua região. Não se destina a fornecer (i) aconselhamento ou recomendações de investimento; (ii) uma oferta ou solicitação para comprar, vender ou deter ativos de cripto/digitais, ou (iii) aconselhamento financeiro, contabilístico, jurídico ou fiscal. As detenções de ativos de cripto/digitais, incluindo criptomoedas estáveis, envolvem um nível de risco elevado e podem sofrer grandes flutuações. Deves ponderar cuidadosamente se o trading ou a detenção de ativos de cripto/digitais são adequados para ti, tendo em conta a tua condição financeira. Consulta o teu profissional jurídico/fiscal/de investimentos para tirar dúvidas sobre as tuas circunstâncias específicas. As informações (incluindo dados de mercado e informações estatísticas, se existirem) apresentadas nesta publicação destinam-se apenas a fins de informação geral. Embora tenham sido tomadas todas as precauções razoáveis na preparação destes dados e gráficos, a OKX não assume qualquer responsabilidade por erros ou omissões aqui expressos.

Ativos digitais sujeitos a volatilidade e não segurados. Não constitui aconselhamento financeiro ou de investimento. Nem todos os produtos são oferecidos em todas as regiões. Aplicam-se exclusões e Termos e Condições.

© 2026 OKX. Este artigo pode ser reproduzido ou distribuído na sua totalidade, ou podem ser utilizados excertos de 100 palavras ou menos deste artigo, desde que essa utilização não seja comercial. Qualquer reprodução ou distribuição de todo o artigo também deve indicar de forma notável: “Este artigo é © 2026 OKX e é utilizado com permissão.” Os excertos permitidos devem citar o nome do artigo e incluir a atribuição, por exemplo, "Nome do Artigo, [nome do autor, se aplicável], © 2026 OKX." Alguns conteúdos podem ser gerados ou ajudados por ferramentas de inteligência artificial (IA). Não são permitidas obras derivadas ou outras utilizações deste artigo.

Artigos relacionados

Ver mais
crypto-glossary-cover-v5.contentful

Crypto Glossary A–Z

Explore key crypto, blockchain, and trading terms through concise definitions, organized alphabetically for quick reference. [A](#a) · [B](#b) · [C](#c) · [D](#d) · [E](#e) · [F](#f) · [G](#g) · [H](#
25/11/2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/short-position

What is a short position?

**A short position is a holding created by selling borrowed assets or selling to open a contract position that has not yet been closed by buying back.** Shorting borrowed assets requires repurchasing
25/11/2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/long-position

What is a long position?

**A long position is a holding created by buying and retaining an asset, or by buying to open a contract position that has not yet been closed by selling.** When the asset is sold or the contract posi
25/11/2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/crypto-collateral

What is collateral?

**Collateral is an asset pledged to secure repayment of borrowing or fulfillment of trading obligations.** In crypto borrowing and margin accounts, a platform or protocol continually assesses how much
25/11/2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/margin-trading

What is spot margin trading?

**Spot margin trading uses assets owned in an account as collateral to borrow quote or base assets for spot purchases and sales.** It still exchanges actual spot assets, but adds a borrowing obligatio
25/11/2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/price-impact

What is price impact?

**Price impact occurs when an order consumes currently available buying or selling quantities, causing its average execution price or the quotes available after the trade to deviate from a pre-trade r
25/11/2026
Ver mais