Skip to main content
Module 04 · Financial Markets: Structure & Infrastructure

The Order Book & Pricing Mechanism

6 min readYou'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.

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.

The Order Book & Pricing Mechanism
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:

PriceBuy orders at this limitSell orders at this limitTotal willing to buy at this priceTotal willing to sell at this priceShares that can match
$10.042006002002,100200
$10.033005005001,500500
$10.024004009001,000900
$10.015003001,400600600
$10.006003002,000300300

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.

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.

$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.

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.
Check yourself

1. 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?

2. 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?

3. What does a resting limit order that has not executed do to the book?

4. Heavy aggressive selling hits a bid level repeatedly, but the bid keeps refreshing and price does not fall. What is this called?