# Order books by price and by order

> Price levels, order queues, market depth, implied prices and matching events, and how CME MDP 3.0 sends them.

Page: https://structure.fi/guides/order-books-by-price-and-by-order/

An order book lists the orders resting on an exchange for one instrument: bids (orders to buy) and asks (orders to sell), each at a price and a quantity. A market data feed cannot send the whole book with every change, so it sends the book once and then every change to it. Feeds describe a book in two ways, by price and by order, and many venues send both.

## Price levels

A **price level** is one price on one side of the book with the total quantity resting there and, on most feeds, how many orders make it up. A feed that sends levels is called **market by price** (MBP), and the book it describes is a **level book**. Levels are numbered from 1 for the best price on each side: the highest bid and the lowest ask.

## Market depth

A level book holds only the best few prices a side. That number is its **depth**: with a depth of five, the feed sends the five best bids and the five best asks, and nothing about any price behind them. Orders at the prices behind still rest at the exchange and still trade when an incoming order reaches them; the level book does not carry them.

The figures below are SR3Z6-SR3H7, a calendar spread of [SOFR futures](https://structure.fi/tools/market-explorer/product/cme/SR3) whose level book is five deep, in the bundled CME capture. A dashed rule on each side marks where the level book ends, and the prices past it are faded: their orders rest, but no level of the feed describes them.

A better price pushes the last level out of the level book:

Before. The level book's five bids run from 24.5 down to 22.5, and 22.0 rests past them.:

| bid queue, front first | ord | size | price | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- |
|  |  |  | 28.5 (past the level book) | 249 | 6 | 130 · 27 · 2 · 22 · 18 · 50 |
|  |  |  | 28.0 (last level of the level book) | 627 | 3 | 27 · 100 · 500 |
|  |  |  | 27.5 | 125 | 2 | 25 · 100 |
|  |  |  | 27.0 | 168 | 4 | 100 · 33 · 25 · 10 |
|  |  |  | 26.5 | 717 | 6 | 50 · 43 · 500 · 7 · 25 · 92 |
|  |  |  | 26.0 | 558 | 8 | 42 · 18 · 115 · 10 · 18 · 139 · 175 · 41 |
|  |  |  | 25.5 |  |  |  |
|  |  |  | 25.0 |  |  |  |
| 32 · 10 · 50 · 10 · 100 | 5 | 202 | 24.5 |  |  |  |
| 25 · 50 · 102 · 257 · 12 · 250 · 250 | 7 | 946 | 24.0 |  |  |  |
| 212 · 78 · 25 · 26 | 4 | 341 | 23.5 |  |  |  |
| 58 · 12 · 25 · 10 · 80 · 72 · 154 · 49 | 8 | 460 | 23.0 |  |  |  |
| 126 · 56 · 12 | 3 | 194 | 22.5 (last level of the level book) |  |  |  |
| 55 | 1 | 55 | 22.0 (past the level book) |  |  |  |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=2666&guide=order-books-by-price-and-by-order&section=block-7)

After a bid of 50 at 25.0, a new best bid. The five bids now run from 25.0 down to 23.0: 22.5 has left the level book, and its 3 orders still rest.:

| bid queue, front first | ord | size | price | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- |
|  |  |  | 28.5 (past the level book) | 249 | 6 | 130 · 27 · 2 · 22 · 18 · 50 |
|  |  |  | 28.0 (last level of the level book) | 627 | 3 | 27 · 100 · 500 |
|  |  |  | 27.5 | 125 | 2 | 25 · 100 |
|  |  |  | 27.0 | 168 | 4 | 100 · 33 · 25 · 10 |
|  |  |  | 26.5 | 717 | 6 | 50 · 43 · 500 · 7 · 25 · 92 |
|  |  |  | 26.0 | 558 | 8 | 42 · 18 · 115 · 10 · 18 · 139 · 175 · 41 |
|  |  |  | 25.5 |  |  |  |
| 50 | 1 | 50 | 25.0 |  |  |  |
| 32 · 10 · 50 · 10 · 100 | 5 | 202 | 24.5 |  |  |  |
| 25 · 50 · 102 · 257 · 12 · 250 · 250 | 7 | 946 | 24.0 |  |  |  |
| 212 · 78 · 25 · 26 | 4 | 341 | 23.5 |  |  |  |
| 58 · 12 · 25 · 10 · 80 · 72 · 154 · 49 | 8 | 460 | 23.0 (last level of the level book) |  |  |  |
| 126 · 56 · 12 | 3 | 194 | 22.5 (past the level book) |  |  |  |
| 55 | 1 | 55 | 22.0 (past the level book) |  |  |  |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=2667&guide=order-books-by-price-and-by-order&section=block-8)

The feed does not send the five bids again. It sends only the entry that changed, in an [`MDIncrementalRefreshBook46`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m46&place=text&guide=order-books-by-price-and-by-order&section=market-depth): what happened (`MDUpdateAction`) and at which place of the level book (`MDPriceLevel`, 1 for the best price):

The one entry of the step: a New bid at level 1, 50 contracts at 25.0 in 1 order.:

message 2,667, [MDIncrementalRefreshBook46](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m46&place=text&guide=order-books-by-price-and-by-order&section=block-10) › NoMDEntries

|  | MDUpdateAction | MDEntryType | MDPriceLevel | MDEntryPx | MDEntrySize | NumberOfOrders | SecurityID |
| --- | --- | --- | --- | --- | --- | --- | --- |
| **[0]** | New | Bid | 1 | 25.0 | 50 | 1 | 43412 (SR3Z6-SR3H7) |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=2667&guide=order-books-by-price-and-by-order&section=block-10)

The receiver moves the five bids it held down one place itself, which pushes 22.5 to level 6, past the level book, and drops it there. No entry names 22.5.

A level that empties pulls the next price in from behind:

Before. The best bid at 25.0 holds one order, and 22.5 waits just past the level book.:

| bid queue, front first | ord | size | price | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- |
|  |  |  | 28.5 (past the level book) | 116 | 5 | 27 · 2 · 18 · 50 · 19 |
|  |  |  | 28.0 (last level of the level book) | 657 | 3 | 27 · 500 · 130 |
|  |  |  | 27.5 | 300 | 4 | 100 · 100 · 41 · 59 |
|  |  |  | 27.0 | 218 | 5 | 100 · 33 · 25 · 10 · 50 |
|  |  |  | 26.5 | 870 | 9 | 50 · 43 · 500 · 7 · 25 · 92 · 12 · 133 · 8 |
|  |  |  | 26.0 | 940 | 8 | 36 · 110 · 132 · 167 · 238 · 48 · 161 · 48 |
|  |  |  | 25.5 |  |  |  |
| 84 | 1 | 84 | 25.0 |  |  |  |
| 32 · 10 · 100 · 50 · 10 | 5 | 202 | 24.5 |  |  |  |
| 25 · 50 · 12 · 250 · 250 | 5 | 587 | 24.0 |  |  |  |
| 212 · 100 · 10 · 57 | 4 | 379 | 23.5 |  |  |  |
| 12 · 80 · 18 | 3 | 110 | 23.0 (last level of the level book) |  |  |  |
| 56 · 12 · 17 | 3 | 85 | 22.5 (past the level book) |  |  |  |
| 55 | 1 | 55 | 22.0 (past the level book) |  |  |  |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=5154&guide=order-books-by-price-and-by-order&section=block-13)

After a sell trades the 25.0 bid away. The bids move up one level, and 22.5 comes back into the level book as its fifth.:

| bid queue, front first | ord | size | price | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- |
|  |  |  | 28.5 (past the level book) | 116 | 5 | 27 · 2 · 18 · 50 · 19 |
|  |  |  | 28.0 (last level of the level book) | 657 | 3 | 27 · 500 · 130 |
|  |  |  | 27.5 | 300 | 4 | 100 · 100 · 41 · 59 |
|  |  |  | 27.0 | 218 | 5 | 100 · 33 · 25 · 10 · 50 |
|  |  |  | 26.5 | 870 | 9 | 50 · 43 · 500 · 7 · 25 · 92 · 12 · 133 · 8 |
|  |  |  | 26.0 | 940 | 8 | 36 · 110 · 132 · 167 · 238 · 48 · 161 · 48 |
|  |  |  | 25.5 |  |  |  |
|  |  |  | 25.0 |  |  |  |
| 32 · 10 · 100 · 50 · 10 | 5 | 202 | 24.5 |  |  |  |
| 25 · 50 · 12 · 250 · 250 | 5 | 587 | 24.0 |  |  |  |
| 212 · 100 · 10 · 57 | 4 | 379 | 23.5 |  |  |  |
| 12 · 80 · 18 | 3 | 110 | 23.0 |  |  |  |
| 56 · 12 · 17 | 3 | 85 | 22.5 (last level of the level book) |  |  |  |
| 55 | 1 | 55 | 22.0 (past the level book) |  |  |  |

fills at message 5,158 · SR3Z6-SR3H7 · trade 25.0 · seller took 84:

| order | price | filled | left | place |
| --- | --- | --- | --- | --- |
| 7302000009590 | 25.0 | −84 | left the book | 1st of 1 |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=5155&guide=order-books-by-price-and-by-order&section=block-14)

Here a trade empties the level, and the feed sends the trade first, in an [`MDIncrementalRefreshTradeSummary48`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m48&place=text&guide=order-books-by-price-and-by-order&section=market-depth):

The trade: a seller (AggressorSide Sell) takes 84 contracts at 25.0.:

message 5,155, [MDIncrementalRefreshTradeSummary48](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m48&place=text&guide=order-books-by-price-and-by-order&section=block-16) › NoMDEntries

|  | MDUpdateAction | MDEntryPx | MDEntrySize | NumberOfOrders | AggressorSide | SecurityID |
| --- | --- | --- | --- | --- | --- | --- |
| **[0]** | New | 25.0 | 84 | 2 | Sell | 43412 (SR3Z6-SR3H7) |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=5155&guide=order-books-by-price-and-by-order&section=block-16)

Then the level book's changes, two messages later:

A Delete at level 1, the emptied 25.0, and a New at level 5 for 22.5, 85 contracts in 3 orders.:

message 5,157, [MDIncrementalRefreshBook46](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m46&place=text&guide=order-books-by-price-and-by-order&section=block-18) › NoMDEntries

|  | MDUpdateAction | MDEntryType | MDPriceLevel | MDEntryPx | MDEntrySize | NumberOfOrders | SecurityID |
| --- | --- | --- | --- | --- | --- | --- | --- |
| **[0]** | Delete | Bid | 1 | 25.0 | 0 | 0 | 43412 (SR3Z6-SR3H7) |
| **[1]** | New | Bid | 5 | 22.5 | 85 | 3 | 43412 (SR3Z6-SR3H7) |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=5157&guide=order-books-by-price-and-by-order&section=block-18)

The Delete moves every bid behind 25.0 up one place, which leaves level 5 empty, and the New fills it with the price that rested past the level book. Between the two, message 5,156, an [`MDIncrementalRefreshVolume37`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m37&place=text&guide=order-books-by-price-and-by-order&section=market-depth), carries the traded volume, and message 5,158, an [`MDIncrementalRefreshOrderBook47`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m47&place=text&guide=order-books-by-price-and-by-order&section=market-depth), removes the filled order from the order book.

Since an entry names a place in the book the receiver holds, a receiver that misses one message puts every later level in the wrong place. CME numbers every packet (`MsgSeqNum`) and every update of an instrument (`RptSeq`), so a receiver sees the gap and rebuilds the book from the [recovery feed](https://structure.fi/guides/order-books-by-price-and-by-order/#joining-a-feed-late).

What the depth hides is everything past it. A level book cannot say how much rests behind its last level, or whether anything does. An order large enough to take every level shown walks on to prices the level book never described, so its average price, and the price it ends at, cannot be known from the level book. A **market by order** feed sends every resting order at every price, so a book built from it has no such limit.

## Order queues

A feed that sends market by order (MBO) sends every resting order with its own id, side, price and quantity. Orders at one price form a **queue**, and an order's place in it decides when it fills: under first in, first out matching, the front of the queue fills first ([how an exchange fills a queue](https://structure.fi/guides/cme-match-algorithms/)).

A queue of four orders, 30 traded first in, first out. The 5 and the 20 fill whole and leave the book, the 15 fills 5 and keeps its place at the front with 10, and the 40 behind it waits.:

| 30 traded | 1st | 2nd | 3rd | 4th |
| --- | --- | --- | --- | --- |
| queue, front first | 5 | 20 | 15 | 40 |
| FIFO | −5 ✕ | −20 ✕ | −5, 10 left | 0 |

## Walking the book

An incoming order trades with the best price on the other side first: a buy with the lowest ask, a sell with the highest bid. When it takes everything at that price it walks on to the next, until it is filled or the next price is worse than its limit. At each price the queue fills by the product's match algorithm; the playground below fills first in, first out. What a limit order has left joins the book at its own price, where it becomes the new best bid or ask; what a market order has left goes unfilled.

A small book, three prices a side around an empty one, and a buy of 40 up to 100.50 ready to be sent into it.:

| price | bid queue, front first | ask queue, front first |
| --- | --- | --- |
| 100.75 |  | 8 · 4 |
| 100.50 |  | 6 · 10 · 4 |
| 100.25 |  | 5 · 12 |
| 100.00 |  |  |
| 99.75 | 10 · 6 |  |
| 99.50 | 4 · 15 · 8 |  |
| 99.25 | 12 |  |

The buy of 40 took both asks it could reach, 17 at 100.25 and 20 at 100.50, and rests its last 3 at 100.50 as the new best bid.

The further an order walks, the worse its later prices, and that cost is its **price impact**, which traders also call slippage. The order the playground starts with takes 17 contracts at 100.25 and 20 at 100.50, so its 37 contracts average (17 × 100.25 + 20 × 100.50) / 37 ≈ 100.385, 0.135 above the best ask it met. Once an order's walk ends, the figure works out its price impact under the steps.

## Implied prices

Some prices come from other books. A calendar spread is one instrument that buys one expiry of a future and sells another, and its price is the difference of the two. A trader can build the same position from the two expiries: buying the first and selling the second is buying the spread. So a bid resting in the first expiry and an ask resting in the second together make a bid for the spread, at the difference of their prices, for as many contracts as the smaller of the two. That is an **implied** price: no order rests in the spread at it. It works the other way too: a bid in the spread and a bid in the second expiry together buy the first, at the sum of their prices.

The table works both out for SR3Z6-SR3H7, which buys December 2026 SOFR futures ([`SR3Z6`](https://structure.fi/tools/market-explorer/instrument/cme/SR3Z6)) and sells March 2027 ([`SR3H7`](https://structure.fi/tools/market-explorer/instrument/cme/SR3H7)):

SR3Z6-SR3H7 and its legs at message 15,000 of the bundled CME capture. The legs are quoted in points and the spread in hundredths of a point, so 0.250 is 25.0. The first two rows are the implied prices the feed sends for the spread; the last two are what the spread's own orders imply for SR3Z6, both behind SR3Z6's best prices.:

| Implied | Made of the resting | Price | Quantity | Against the book |
| --- | --- | --- | --- | --- |
| SR3Z6-SR3H7 bid | SR3Z6 bid 95.785 × 34,781 and SR3H7 ask 95.535 × 27,184 | 95.785 − 95.535 = 0.250 → 25.0 | min(34,781, 27,184) = 27,184 | the feed's implied bid: 27,184 at 25.0 |
| SR3Z6-SR3H7 ask | SR3Z6 ask 95.790 × 973 and SR3H7 bid 95.530 × 28,321 | 95.790 − 95.530 = 0.260 → 26.0 | min(973, 28,321) = 973 | the feed's implied ask: 973 at 26.0 |
| SR3Z6 bid | SR3Z6-SR3H7 bid 25.0 × 260 and SR3H7 bid 95.530 × 28,321 | 95.530 + 0.250 = 95.780 | min(260, 28,321) = 260 | behind the best bid, 95.785 |
| SR3Z6 ask | SR3Z6-SR3H7 ask 26.0 × 218 and SR3H7 ask 95.535 × 27,184 | 95.535 + 0.260 = 95.795 | min(218, 27,184) = 218 | behind the best ask, 95.790 |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=15000&guide=order-books-by-price-and-by-order&section=block-32) · [SR3Z6 at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6&message=15000&guide=order-books-by-price-and-by-order&section=block-32) · [SR3H7 at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3H7&message=15000&guide=order-books-by-price-and-by-order&section=block-32)

An exchange that computes implied prices trades against them as it trades against resting orders, so a trade can happen at a price where nobody rests an order: a sell of the spread at 25.0 can fill 27,444 contracts though the spread's own book holds 260 there, and the exchange fills the two legs behind the other 27,184. Its feed sends implied prices as levels of their own, with a quantity and no orders, so a book shows them beside the resting orders' levels.

## Matching events

One trade changes many things at once: the trade itself, the traded volume, the levels it emptied, each order it filled, and the implied prices built from them. An exchange sends these as several messages, and the book is in a consistent state only after the last of them, so the feed marks where each such group ends.

## Joining a feed late

A recording that starts during a trading session misses the orders placed before it. Their quantity still shows in the levels, so a book rebuilt from orders alone comes out short.

Exchanges repeat the full book on a separate recovery feed for receivers that join late or lose packets. A receiver replaces its book with the snapshot and applies the incremental feed from there.

## At CME

### Depth and levels

Each instrument's definition, such as [`MDInstrumentDefinitionFuture54`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m54&place=text&guide=order-books-by-price-and-by-order&section=depth-and-levels) for a future, lists the books CME sends for it in `NoMDFeedTypes`: the `GBX` entry's [`MarketDepth`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m54%2Fg1141%2Ff264&place=text&guide=order-books-by-price-and-by-order&section=depth-and-levels) is the depth of its level book, and the `GBI` entry's the depth of its implied book. Most futures have ten levels a side; the SOFR futures and their spread in the bundled CME capture have five.

A level entry's `MDUpdateAction` is New, Change or Delete, and its `MDPriceLevel` is a place in the receiver's level book, so the receiver moves the levels the entry does not name. The messages above follow these rules:

How CME MDP 3.0 moves a level book five deep:

| Change | Entries CME sends | What the receiver does |
| --- | --- | --- |
| a better price arrives | New at level 1 | moves every level down one; the level pushed past 5 is dropped, and no entry names it |
| a level empties | Delete at its level, then New at level 5 for the price behind, when there is one | moves the levels behind the emptied one up one; the New fills the last place |
| a level's quantity or order count changes | Change at its level | updates that level only |

### Order ids and priority

At CME each order carries `OrderID` and `MDOrderPriority`, and a lower priority number stands ahead. An order keeps its place when its quantity goes down. It loses its place and joins the back of the queue when its quantity goes up, its price changes or its account number changes.

CME sends both views in the same messages. A book update carries the changed levels in one repeating group (`NoMDEntries`) and the order changes that caused them in another (`NoOrderIDEntries`):

MDIncrementalRefreshBook46 in the CME MDP 3.0 SBE schema, as the Market Data Visualizer's text view writes it:

```text
// semantic type X · since v9
// MDIncrementalRefreshBook
MDIncrementalRefreshBook46 :: message @46 {
    // Start of event processing time in number of nanoseconds since Unix epoch
    TransactTime:        uInt64;              @60
    // Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event
    MatchEventIndicator: MatchEventIndicator; @5799
    // padding
    // Number of entries in Market Data message
    NoMDEntries:         group                @268 {
        // Market Data entry price
        MDEntryPx:      PRICENULL9 optional; @270
        // Market Data entry size
        MDEntrySize:    Int32NULL optional;  @271
        // Security ID
        SecurityID:     Int32;               @48
        // Market Data entry sequence number per instrument update
        RptSeq:         uInt32;              @83
        // In Book entry - aggregate number of orders at given price level
        NumberOfOrders: Int32NULL optional;  @346
        // Aggregate book level
        MDPriceLevel:   uInt8;               @1023
        // Market Data update action
        MDUpdateAction: MDUpdateAction;      @279
        // Market Data entry type
        MDEntryType:    MDEntryTypeBook;     @269
        // Tradeable qty
        TradeableSize:  Int32NULL optional;  @37719 [since v10]
        // padding
    }
    // Number of OrderID entries
    NoOrderIDEntries:    group                @37705 {
        // Unique Order ID
        OrderID:           uInt64;              @37
        // Order priority for execution on the order book
        MDOrderPriority:   uInt64NULL optional; @37707
        // Visible qty of order
        MDDisplayQty:      Int32NULL optional;  @37706
        // Reference to corresponding Price and Security ID, sequence of MD entry in the message
        ReferenceID:       uInt8NULL optional;  @9633
        // Order book update action to be applied to the order referenced by OrderID
        OrderUpdateAction: OrderUpdateAction;   @37708
        // padding
    }
}
PRICENULL9 :: composite {
    mantissa:   int64 optional; // null 9223372036854775807
    exponent :: -9;
}
```

CME MDP 3.0 messages that change a book or report a trade:

| Message | Carries |
| --- | --- |
| MDIncrementalRefreshBook46 | changed levels and, inside level depth, the order changes behind them |
| MDIncrementalRefreshOrderBook47 | order changes outside level depth, and order changes sent apart from a book update |
| MDIncrementalRefreshTradeSummary48 | each trade, its aggressor and the resting orders it filled |

[Open MDIncrementalRefreshBook46 in the CME schema](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m46&place=text&guide=order-books-by-price-and-by-order&section=block-49)

### The implied book

CME's matching engine computes implied prices from the outright futures and trades against them. MDP 3.0 publishes at most two implied levels a side, the `GBI` entry's `MarketDepth`, as level entries of `MDEntryType` E (implied bid) and F (implied offer), with quantity and no orders. The bundled CME capture sends them for the spread only.

### End of an event

CME groups the messages of one trade into a **matching event** and marks its last message with the `EndOfEvent` flag in `MatchEventIndicator`. Inside an event, an order can already show its fill while its level still holds the old size.

### Recovery

CME's recovery feed is the snapshot feed: [`SnapshotFullRefresh52`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m52&place=text&guide=order-books-by-price-and-by-order&section=recovery) carries the levels and [`SnapshotFullRefreshOrderBook53`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m53&place=text&guide=order-books-by-price-and-by-order&section=recovery) the orders ([recovery in brief](https://structure.fi/guides/cme-mdp3/#recovery-in-brief)).

## In the Market Data Visualizer

Each book pane draws one row per tick, asks above and bids below, with these columns on each side:

- **size** and **ord**: the level's total quantity and order count, the market by price view.
- **order blocks**: one block per resting order in priority order, the front of the queue next to `ord` and the back at the pane's edge, each as wide as its quantity, the market by order view.
- **price**: in display units (`7810.25` for [`ESZ6`](https://structure.fi/tools/market-explorer/instrument/cme/ESZ6), `95.785` for `SR3Z6`).

ESZ6 by price and by order. The size and ord columns are the level book: 111 contracts in 10 orders at the best ask 7816.00. The blocks beside them split each level into its orders, front of the queue next to the price.:

| bid queue, front first | ord | size | price | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- |
|  |  |  | 7817.00 | 117 | 16 | 50 · 5 · 10 · 1 · 4 · 10 · 2 · 5 · 10 · 1 · 5 · 4 · 1 · 5 · 2 · 2 |
|  |  |  | 7816.75 | 113 | 25 | 5 · 2 · 4 · 8 · 5 · 1 · 6 · 1 · 1 · 2 · 10 · 20 · 2 · 1 · 2 · 1 · 10 · 1 · 10 · 1 · 2 · 10 · 5 · 1 · 2 |
|  |  |  | 7816.50 | 215 | 26 | 2 · 4 · 50 · 3 · 5 · 50 · 1 · 1 · 2 · 5 · 5 · 10 · 5 · 1 · 4 · 10 · 1 · 1 · 7 · 13 · 2 · 9 · 10 · 9 · 4 · 1 |
|  |  |  | 7816.25 | 232 | 32 | 1 · 6 · 16 · 1 · 5 · 5 · 7 · 10 · 28 · 2 · 1 · 14 · 10 · 1 · 4 · 11 · 2 · 2 · 1 · 2 · 1 · 1 · 19 · 5 · 1 · 50 · 1 · 1 · 1 · 20 · 2 · 1 |
|  |  |  | 7816.00 | 111 | 10 | 2 · 3 · 5 · 50 · 1 · 1 · 7 · 17 · 5 · 20 |
| 9 · 7 · 1 · 1 · 10 · 2 · 2 · 10 · 2 · 2 · 2 · 25 · 5 · 5 · 3 · 12 · 4 · 17 · 2 · 2 · 3 · 8 · 7 · 1 · 5 · 2 · 2 · 3 · 5 · 2 · 1 · 1 · 2 · 5 · 30 · 1 · 1 · 2 · 1 · 5 · 20 · 5 | 42 | 235 | 7815.75 |  |  |  |
| 1 · 6 · 5 · 20 · 1 · 50 · 2 · 10 · 20 · 5 · 20 · 20 · 1 · 4 · 2 · 7 · 6 · 10 · 10 · 5 · 5 · 10 · 2 · 5 · 15 · 5 · 2 · 2 · 1 · 1 · 3 · 5 · 6 · 10 · 7 · 2 · 20 · 5 · 1 · 57 | 40 | 369 | 7815.50 |  |  |  |
| 7 · 1 · 18 · 10 · 1 · 9 · 7 · 3 · 8 · 2 · 11 · 10 · 2 · 18 · 20 · 1 · 1 · 50 · 2 · 50 · 16 · 3 · 20 · 104 · 20 · 6 · 1 · 1 · 1 · 2 · 1 · 2 · 1 · 2 | 34 | 411 | 7815.25 |  |  |  |
| 3 · 10 · 10 · 2 · 10 · 10 · 5 · 7 · 6 · 20 · 4 · 10 · 10 · 13 · 3 · 2 · 3 · 1 · 2 · 5 · 10 · 6 · 1 · 1 · 2 · 2 · 1 · 1 | 28 | 160 | 7815.00 |  |  |  |
| 3 · 6 · 2 · 8 · 17 · 2 · 20 · 2 · 3 · 2 · 2 · 21 · 7 · 9 · 5 · 6 · 2 · 1 · 10 · 5 · 8 · 2 · 10 · 2 · 2 · 4 | 26 | 161 | 7814.75 |  |  |  |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=ESZ6&message=951&guide=order-books-by-price-and-by-order&section=block-59)

Hover a block for its order card: id, quantity, place in the queue, contracts ahead, the messages that added and changed it, its fills and the match algorithm. A queue that does not fit folds its tail into a striped block; pinch or hold Cmd/Ctrl with the wheel to zoom in.

Past the level book's depth, size and ord are the sums of the orders the book knows. The Market Data Visualizer plays and steps by whole matching events, so a book is never drawn halfway through one.

Implied prices show per book under **Display** → **Implied**, as a faint `impl` column beside each side's size:

SR3Z6-SR3H7 with implied prices shown: the impl column holds the size implied from the two outrights. At the best bid, 2 orders rest in the spread itself for 260 contracts, while 27,184 more are implied from the legs.:

| bid queue, front first | ord | size | impl | price | impl | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|  |  |  |  | 27.5 |  | 228 | 2 | 223 · 5 |
|  |  |  |  | 27.0 |  | 153 | 4 | 25 · 23 · 100 · 5 |
|  |  |  |  | 26.5 | 17,704 | 178 | 3 | 50 · 100 · 28 |
|  |  |  |  | 26.0 | 973 | 218 | 5 | 50 · 20 · 23 · 100 · 25 |
|  |  |  |  | 25.5 |  |  |  |  |
| 10 · 250 | 2 | 260 | 27,184 | 25.0 |  |  |  |  |
| 4 · 50 · 29 · 36 · 11 · 10 | 6 | 140 | 7,597 | 24.5 |  |  |  |  |
| 250 · 500 · 500 · 10 · 27 · 26 · 10 · 500 | 8 | 1,823 |  | 24.0 |  |  |  |  |
| 10 · 71 · 37 · 3 · 10 | 5 | 131 |  | 23.5 |  |  |  |  |
|  |  |  |  | 23.0 |  |  |  |  |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=15000&guide=order-books-by-price-and-by-order&section=block-63)

Where a recording starts late, the Market Data Visualizer draws the orders it knows and puts the quantity it cannot explain in one hatched block at the front of the queue, since those orders arrived first. Past the level book's depth it draws only the orders it knows. In the bundled CME capture, the equity channels start with a channel reset, so their books are whole from the first message, while the SOFR channel starts partway through the session:

SR3Z6-SR3H7 before the SOFR snapshot. A hatched block at the front of a queue stands for the orders placed before the recording started: at 24.5, one block stands for all 5 orders. The plain blocks are orders the recording saw arrive.:

| bid queue, front first | ord | size | price | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- |
|  |  |  | 27.0 |  |  |  |
|  |  |  | 26.5 | 675 | 6 | 143 · 500 · 7 · 25 |
|  |  |  | 26.0 | 672 | 8 | 3 · 56 · 22 · 143 · 10 · 22 · 198 · 218 |
|  |  |  | 25.5 |  |  |  |
|  |  |  | 25.0 |  |  |  |
| 202 | 5 | 202 | 24.5 |  |  |  |
| 177 · 257 · 100 · 12 | 6 | 546 | 24.0 |  |  |  |
| 482 · 26 | 6 | 508 | 23.5 |  |  |  |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=2000&guide=order-books-by-price-and-by-order&section=block-65)

The SOFR snapshot arrives 20 seconds in, and the book becomes whole:

SR3Z6-SR3H7 after the snapshot. Every order is known: the hatched block at 24.5 is now its 5 orders, 100, 50, 32 and two small ones.:

| bid queue, front first | ord | size | price | size | ord | ask queue, front first |
| --- | --- | --- | --- | --- | --- | --- |
|  |  |  | 27.0 | 168 | 4 | 100 · 33 · 25 · 10 |
|  |  |  | 26.5 | 625 | 5 | 50 · 43 · 500 · 7 · 25 |
|  |  |  | 26.0 | 722 | 9 | 3 · 56 · 22 · 143 · 10 · 22 · 198 · 218 · 50 |
|  |  |  | 25.5 |  |  |  |
|  |  |  | 25.0 |  |  |  |
| 32 · 10 · 50 · 10 · 100 | 5 | 202 | 24.5 |  |  |  |
| 25 · 50 · 102 · 257 · 100 · 12 · 250 | 7 | 796 | 24.0 |  |  |  |
| 212 · 117 · 78 · 25 · 26 | 5 | 458 | 23.5 |  |  |  |

[Open at this message](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&instrument=SR3Z6-SR3H7&message=2240&guide=order-books-by-price-and-by-order&section=block-67)

## Read on

- [Replay CME order books from a pcap capture](https://structure.fi/tools/market-data-visualizer/guides/replay-cme-order-books.md)
- [How an exchange fills a queue: first in, first out, allocation and pro rata](https://structure.fi/guides/cme-match-algorithms/)
- [Find trades, resets and gaps in a CME capture](https://structure.fi/tools/market-data-visualizer/guides/find-events-in-a-cme-capture.md)
- [CME MDP 3.0](https://structure.fi/guides/cme-mdp3/)

## Sources

- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457323107/MDP+3.0+-+Message+Specification
- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457574047/MDP+3.0+-+Market+by+Price+-+Multiple+Depth+Book
- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457218479/Supported+Matching+Algorithms

Reviewed by Structure on 2026-11-25. Last changed 2026-11-25.
