On this page
The Central Limit Order Book (CLOB)
A central limit order book, or CLOB, is the matching engine at the heart of most modern exchanges. It gathers every resting buy and sell order into one transparent list and pairs trades using a fixed, public rulebook rather than a dealer's discretion.
Key Takeaways
- A central limit order book consolidates all bids and offers for a security into a single venue and ranks them by price first, then by arrival time.
- Price-time priority means the best-priced order always fills first, and among equal prices, the order that arrived earliest wins.
- The book is transparent and anonymous: participants see resting size at each price, but not who posted it, which supports fair and orderly price discovery.
- Marketable orders "walk the book," consuming size level by level, so a large order can execute at several prices and move the quoted market.
Key Takeaways
- A central limit order book consolidates all bids and offers for a security into a single venue and ranks them by price first, then by arrival time.
- Price-time priority means the best-priced order always fills first, and among equal prices, the order that arrived earliest wins.
- The book is transparent and anonymous: participants see resting size at each price, but not who posted it, which supports fair and orderly price discovery.
- Marketable orders "walk the book," consuming size level by level, so a large order can execute at several prices and move the quoted market.
What It Is
A central limit order book is an electronic ledger that centralizes the limit orders for one instrument. "Limit" means each order carries a price the trader will not cross. "Central" means orders route to one shared book instead of many private dealer inventories. "Order book" is the list itself, split into two sides.
The bids are standing buy orders, sorted from highest price down. The offers (also called asks) are standing sell orders, sorted from lowest price up. The highest bid and the lowest offer form the inside quote. The gap between them is the bid-ask spread, and the resting quantities behind each price are the market depth.
The Intuition
Think of the book as two orderly lines facing each other. Buyers line up by how much they are willing to pay, with the most generous buyer at the front. Sellers line up by how little they will accept, with the cheapest seller at the front. A trade happens only when the front buyer's price meets or beats the front seller's price.
Because the rulebook is mechanical and public, no one gets a better fill for being a favored client. The order that offers the best price to the other side, and got there first, is served first. That predictability is what lets thousands of anonymous participants trade with one another confidently.
How It Works
The CLOB enforces price-time priority in two steps:
- Price priority. A buy order that bids more ranks ahead of one that bids less. A sell order asking less ranks ahead of one asking more. The best price always sits at the front of its side.
- Time priority. When two orders share the same price, the one with the earlier timestamp fills first. Amending an order or increasing its size usually resets that timestamp and sends it to the back of the queue.
When a new order can trade against the opposite side (a buy priced at or above the best offer, for example), the engine matches it immediately, consuming resting size in priority order. Any unfilled remainder either rests in the book as a new limit order or, if it is a market order, keeps walking to the next price level until it is complete.
Worked Example
Suppose the offer side of a CLOB holds these resting sell orders:
- $50.02 for 400 shares (Order C, posted 10:00:01)
- $50.02 for 600 shares (Order D, posted 10:00:03)
- $50.03 for 800 shares
- $50.04 for 700 shares
The best bid is $50.00, so the spread is $0.02. A trader now sends a market buy for 1,200 shares.
Price priority sends it to $50.02 first. Within that price, time priority fills Order C's 400 shares before Order D. Order C fills completely (400), then Order D fills 600, using all 1,000 shares available at $50.02. The remaining 200 shares walk up to $50.03.
- 1,000 shares at $50.02 = $50,020
- 200 shares at $50.03 = $10,006
- Total cost = $60,026, an average of $60,026 / 1,200 = $50.0217 per share
The order paid more than the $50.02 top of book because it exhausted that level. Afterward the best offer is $50.03 with 800 shares left, so the spread has widened from $0.02 to $0.03 until fresh sellers repost at $50.02.
Common Mistakes
- Confusing the inside quote with the whole book. Level 1 shows only the best bid and offer. A large order interacts with the depth behind it, so relying on the top line understates cost.
- Ignoring time priority when editing orders. Raising your size or changing price typically resets your timestamp and drops you to the back of the queue at that price.
- Assuming a market order fills at one price. Marketable size walks the book across levels, and the average fill can differ noticeably from the quote shown a moment earlier.
- Treating displayed depth as the full picture. Hidden and iceberg orders mean some resting size is not shown, so the visible book can understate true liquidity.
Frequently Asked Questions
Q: What is a central limit order book in simple terms? It is one shared, transparent list of all standing buy and sell orders for a security. The exchange matches trades from it using fixed rules, so the best-priced, earliest order always fills first.
Q: How does a central limit order book decide who trades first? It uses price-time priority. The best price ranks ahead of worse prices, and when two orders share a price, the one that arrived earliest is filled first.
Q: What is the difference between bids and offers? Bids are resting buy orders, ranked highest price first. Offers, also called asks, are resting sell orders, ranked lowest price first. The best bid and best offer form the current quote.
Q: Is a central limit order book the same as a dark pool? No. A CLOB displays resting size at each price so the market can see depth, while a dark pool hides orders until they execute. The CLOB prioritizes transparency and public price discovery.
Q: Why did my market order fill at a worse price than the quote? Your order likely consumed all the size at the best price and walked to the next level. Averaging fills across levels produces a price worse than the top of book.
Sources
- SEC. "Regulation NMS, Rule 611 Order Protection Rule." https://www.sec.gov/rules/final/34-51808.pdf
- Nasdaq. "Equity 4 Trading Rules (Order Ranking and Priority)." https://listingcenter.nasdaq.com/rulebook/nasdaq/rules
- CFTC. "Core Principle 9 and Centralized Market Trading." https://www.cftc.gov/LawRegulation/CommodityExchangeAct/index.htm
- Investopedia. "Order Book." https://www.investopedia.com/terms/o/order-book.asp
Disclaimer
This article is educational content only and is not financial advice. Nothing here is a recommendation to buy, sell, or hold any security. Consult a licensed advisor before making investment decisions.