# The Order Book & Pricing Mechanism

> How buyers and sellers actually set a price.

Module: Financial Markets: Structure & Infrastructure — Finotaur Academy (free lesson)
Source: https://www.finotaur.com/academy/market-structure/order-book-and-pricing

## You'll be able to

Read an order book as a ranked queue, predict which resting orders fill first under price-time priority, and work out the single price an opening or closing auction will set.

## In plain words

An order book is the live list of every resting buy order (bids) and sell order (asks) for a security, ranked by price and then by arrival time; a trade happens whenever an incoming order is willing to meet a resting one. The market price is therefore not decided by anyone — it is simply the level where the most recent buyer and seller agreed. Exchanges use two matching methods: continuous trading during the session, and auctions at the open and close that gather orders and clear them at one price.

```takeaways
- The book ranks orders by **price first, then time**: a better price always goes ahead, and at the same price the earliest order fills first.
- **Liquidity providers** rest limit orders in the book; **liquidity takers** send orders that execute immediately against them.
- An **auction** chooses the price that **maximises matched volume**; leftover shares are the **imbalance**.
- Price moves when one side of the book is **consumed** faster than it is replenished, not because "more buyers than sellers" exist — every trade has both.
```

## Quick demo

**Continuous trading — the queue.** Three hypothetical buy orders rest at the best bid of $50.00, in the order they arrived: A 300 shares, B 500, C 200. A seller sends a market order for 600 shares.

Under **price-time priority**, A fills 300 first, then B fills the remaining 300. C gets nothing, and B still has 200 shares waiting. If the market used **pro-rata** allocation (common in some futures contracts), the 600 shares would be split in proportion to size: A 600 × 300/1,000 = **180**, B **300**, C **120**.

**An opening auction.** Before the open, these hypothetical limit orders are collected:

| Price | Buy orders at this limit | Sell orders at this limit | Total willing to buy at this price | Total willing to sell at this price | Shares that can match |
|---|---|---|---|---|---|
| $10.04 | 200 | 600 | 200 | 2,100 | 200 |
| $10.03 | 300 | 500 | 500 | 1,500 | 500 |
| $10.02 | 400 | 400 | 900 | 1,000 | **900** |
| $10.01 | 500 | 300 | 1,400 | 600 | 600 |
| $10.00 | 600 | 300 | 2,000 | 300 | 300 |

A buyer is willing at any price at or below their limit; a seller at any price at or above theirs. The auction picks **$10.02**, where **900 shares** match — more than at any other price. Every matched buyer pays $10.02, even those who bid $10.04, and every matched seller receives $10.02. Sellers offered 1,000 shares at or below $10.02, so **100 shares** of sell interest are left over: a sell **imbalance** that rolls into continuous trading.

## Full explanation

### Anatomy of the book

Each price level shows the total size resting there, built from many individual orders. **Level 1** (top of book) is the best bid and ask; **Level 2** (market depth) shows the next levels. Exchanges publish this through their own data feeds; the consolidated public feed in the US shows the best quotes from every exchange, which together form the **NBBO** (national best bid and offer).

Not everything is visible:

- **Hidden orders** rest in the book without being displayed. They usually lose time priority to displayed orders at the same price.
- **Iceberg (reserve) orders** show only a slice; when it fills, another slice appears at the back of the queue.
- **Midpoint pegs** rest at the midpoint of the NBBO, invisible to the book.
- **Dark pools** (alternative trading systems without a displayed book) match orders off-exchange, usually at the NBBO midpoint or inside it.

So the displayed book is a lower bound on real liquidity, and size shown can vanish in milliseconds when quotes are cancelled.

### Makers and takers

A limit order that does not execute immediately **adds** liquidity (maker). An order that executes against a resting order **removes** liquidity (taker). Many US exchanges use **maker-taker pricing**: takers pay an access fee and makers receive a rebate. Others use the reverse ("inverted" venues). Fees and rebates are tiny per share but shape where professional orders rest and which venue fills first; amounts are set by each venue and change, so check current schedules.

### Tick size

Prices move in minimum increments called **ticks**. For US stocks priced at $1 or more, Regulation NMS has long barred displaying quotes in increments below one cent; the SEC adopted changes in 2024 to allow a half-cent tick for some heavily traded, tightly quoted stocks, with implementation dates set by the rule — check the current status. Futures each have their own tick (for example, 0.25 index points in the E-mini S&P 500). Tick size matters: when the spread is pinned at one tick, getting filled is about **queue position**, not price.

### Why price actually moves

Every trade has a buyer and a seller, so "more buyers than sellers" is meaningless as stated. What moves price is **urgency**. If takers keep buying aggressively, they eat through the asks level by level. If makers do not replace the consumed offers quickly — because they think the buying is informed — the best ask rises and the price goes up. Conversely, a market can absorb heavy selling with little price change if large passive buyers keep refreshing the bid. Order-flow traders watch for exactly this: aggressive volume meeting a level that refuses to move is called **absorption**.

```stats
$10.02 | Auction clearing price | Maximises matched shares
900 | Shares matched in the auction | Demand 900 vs supply 1,000
100 | Sell imbalance | Rolls into continuous trading
180 / 300 / 120 | Pro-rata fills of a 600-lot | A / B / C by share of 1,000
```

### Auctions in practice

US listing exchanges run an **opening auction** (the Nasdaq Opening Cross, the NYSE opening auction run by its designated market makers) and a **closing auction**. Before each, they publish **imbalance information**: indicative price and how many shares are unmatched on which side. Closing auctions have grown into a very large share of daily volume because index funds and many institutions benchmark to the official close; on index rebalance days they can be enormous. Order types such as **market-on-close (MOC)** and **limit-on-close (LOC)** exist only for these auctions, and exchanges set cut-off times for entering and cancelling them.

```tip
On index rebalance days and quarterly expiries, watch the published closing imbalance in the last minutes of the session. A large one-sided imbalance tells you who must trade at the close, regardless of price.
```

### The advanced nuance: queue position is an asset

When a stock trades with a one-tick spread and deep size at each level, a limit order at the back of a long queue may never fill — or may fill only when the queue in front of it is wiped out by a big seller, which is exactly when you would rather not be buying. This is **adverse selection**: passive orders tend to fill against informed flow. Professional market makers invest heavily in speed partly to secure front-of-queue position, where fills are more likely to come from uninformed traders. As a retail trader, assume your passive fill was more likely to happen when price was about to move against you, and judge limit-order strategies on what happens after the fill, not on the fill alone.

### Common mistakes

- **Treating displayed size as guaranteed.** Quotes are cancelled constantly; hidden size can also appear.
- **Joining a long queue and assuming you will fill.** At a pinned spread, time priority decides.
- **Reading "last price" as the market.** The bid and ask show where you can trade now.
- **Ignoring auctions.** The official open and close are set by auction prices, not the last continuous trade.

```checklist
title: Reading the book before you trade
- Note the best bid, best ask, spread and size at each.
- Look three to five levels deep: is liquidity thin or thick beyond the top?
- Watch whether size at the best price refreshes after it trades or disappears.
- Near the open or close, check the published auction imbalance.
- For passive orders, think about queue position and what a fill likely means.
```

```quiz
[
  {
    "q": "Orders at the best bid arrive in this order: X 100, Y 400, Z 300. A 250-share sell order arrives. Which orders fill under price-time priority?",
    "options": ["X 100 and Y 150", "Y 250", "All three proportionally", "Z 250"],
    "answer": 0,
    "why": "Time priority at the same price: X fills fully first, then Y fills the remaining 150."
  },
  {
    "q": "In an auction, cumulative buy interest at $20.05 is 1,200 shares and cumulative sell interest is 1,000. At $20.06 they are 800 and 1,300. Which price matches more shares?",
    "options": ["$20.05 (1,000 shares)", "$20.06 (800 shares)", "Both match the same", "Neither"],
    "answer": 0,
    "why": "Matched volume is the smaller side: 1,000 at $20.05 versus 800 at $20.06."
  },
  {
    "q": "What does a resting limit order that has not executed do to the book?",
    "options": ["Removes liquidity", "Adds liquidity", "Changes the tick size", "Nothing until the close"],
    "answer": 1,
    "why": "Resting limit orders are the liquidity that incoming orders trade against."
  },
  {
    "q": "Heavy aggressive selling hits a bid level repeatedly, but the bid keeps refreshing and price does not fall. What is this called?",
    "options": ["Spoofing", "Absorption", "Slippage", "An imbalance halt"],
    "answer": 1,
    "why": "A passive buyer absorbing aggressive selling without letting price drop is called absorption."
  }
]
```
