# CME MDP 3.0: packet header, message size, SBE messages and the schema

> Learn how CME MDP 3.0 frames SBE market data messages inside UDP multicast packets, how its incremental and recovery feeds work, where to get the official XML schema, and how the viewer replays captured feeds as order books.

Page: https://structure.fi/guides/cme-mdp3/

Market Data Platform 3.0 (MDP 3.0) is CME Group's real-time market-data feed for futures, options, treasuries, and FX across CME Globex (CME, CBOT, NYMEX, COMEX), BrokerTec, and EBS. Trading firms, market makers, and data vendors consume MDP 3.0 over UDP multicast to build live order books and track trades, encoded in [Simple Binary Encoding (SBE)](https://structure.fi/guides/sbe-message-layout/).

While CME's public XML schema defines every SBE message template, the outer UDP packet header and per-message length prefix exist only in CME's documentation. This page walks through an MDP 3.0 packet from its first byte, explains CME's multicast channels and gap recovery, notes key schema conventions, and shows where to fetch and inspect the schema.

This guide is not affiliated with or endorsed by CME Group; where this page and CME's Client Systems Wiki (under sources) differ, the wiki is authoritative. See the [protocol directory](https://structure.fi/guides/protocol-directory/) for CME's other protocols.

## A packet, from the first byte

The primary feed uses UDP multicast (CME also publishes the same SBE templates over Google Cloud Pub/Sub—real-time and 10-minute delayed—and conflated TCP feeds for some markets). Everything is [little-endian](https://structure.fi/guides/binary-message/#endianness).

Because UDP delivers datagrams and SBE does not mark message boundaries, CME adds two [framing](https://structure.fi/guides/binary-message/#framing) layers not declared in the XML schema:

1. **Packet header (12 bytes, once per packet):** `MsgSeqNum` (`uint32`, per-channel sequence number incrementing by 1 per packet and resetting weekly), then `SendingTime` (`uint64`, nanoseconds since the Unix epoch—see [timestamps as integers](https://structure.fi/guides/prices-and-times-as-integers/#a-note-on-timestamps-the-same-integer-idea)).
2. **`MsgSize` (`uint16`, before each message):** total byte length of this message, including `MsgSize` itself and the SBE header. Add `MsgSize` to its start offset to reach the next message.
3. **8-byte [SBE message header](https://structure.fi/guides/sbe-message-header/):** `blockLength`, `templateId`, `schemaId`, `version` (four `uint16` fields).
4. **SBE message body** ([as SBE lays it out](https://structure.fi/guides/sbe-message-layout/)): root block, [repeating groups](https://structure.fi/guides/variable-sized-data/#sbe-count-prefixed-groups-and-length-prefixed-data), and any variable-length data. Repeat steps 2–4 until the end of the packet.

## Channels and feeds

CME partitions instruments into channels (listed in CME's channel guide), each with three multicast feeds:

- **Incremental feed:** real-time book updates, trades, statistics, and status changes, duplicated on Feed A and Feed B. Receivers arbitrate by keeping the first copy of each `MsgSeqNum`.
- **Market recovery feed:** continuous loop of per-instrument book snapshots.
- **Instrument definition feed:** continuous loop of security definitions for receivers starting mid-week.

## Recovery in brief

A gap in `MsgSeqNum` across both Feed A and Feed B means lost packets. Recover in either of two ways:

- **Snapshot loop:** listen to the market recovery feed for each affected instrument's snapshot, apply newer queued incremental messages, then leave the recovery feed (per CME guidance).
- **TCP replay:** request the missed incremental packets from CME's TCP replay service.

## What is in the schema

One XML schema holds all templates—book updates by price and by order, trade summaries, statistics, security definitions, security status, snapshots, and channel admin messages—along with shared types:

- Fixed-exponent `int64` prices ([fixed-point integers](https://structure.fi/guides/prices-and-times-as-integers/#fixed-point-one-fixed-scale)).
- Optional types with explicit [null values](https://structure.fi/guides/binary-message/#null-values).
- CME's repeating-group dimension headers.

CME bumps the schema's `version` when templates change. Older decoders stay compatible by advancing past each root block using the wire `blockLength` ([schema versioning](https://structure.fi/guides/schema-versioning/)).

## Get the schema

- **Address:** `ftp://ftp.cmegroup.com/SBEFix/Production/Templates/templates_FixBinary.xml` (plain XML; older versions sit in `Archive/` beside it; cert and new-release directories are listed on CME's FTP/SFTP wiki page).
- **Fetching:** browsers block `ftp://` and CME's web mirror refuses scripted requests; use `curl` or an FTP client against the FTP address above.
- **Licence:** no licence text is inside the file, and CME's site terms reserve its rights (the wiki also states production schema details are for certified customers, though the FTP server does not enforce login). The Market Data Visualizer bundles version 13 as a sample; check your CME agreement before you redistribute it yourself.
- **Sample pcap files:** a synthetic MDP 3.0 capture and its instrument definitions, made by Structure, to download, and where CME and Databento offer recorded captures, are in [market data schemas and sample files](https://structure.fi/guides/sample-market-data-files/).

## In the Market Data Visualizer

The app reads MDP 3.0 in two ways:

- **Captured market data:** drop classic `.pcap`, `.pcap.gz` or `.pcap.zst` files to replay order books by price and by order with decoded messages beside raw bytes. Fixed layouts cover channel resets ([`ChannelReset4`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m4&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer)), volume ([`MDIncrementalRefreshVolume37`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m37&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer)), book updates ([`MDIncrementalRefreshBook46`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m46&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer), [`MDIncrementalRefreshOrderBook47`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m47&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer)), trades ([`MDIncrementalRefreshTradeSummary48`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m48&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer)), snapshots ([`SnapshotFullRefresh52`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m52&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer), [`SnapshotFullRefreshOrderBook53`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m53&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer)) and definitions ([`MDInstrumentDefinitionFuture54`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m54&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer), [`MDInstrumentDefinitionOption55`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m55&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer), [`MDInstrumentDefinitionSpread56`](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3-schema&node=m56&place=text&guide=cme-mdp3&section=in-the-market-data-visualizer)) without a schema file.
- **The schema:** open CME's `templates_FixBinary.xml` (version 13 is bundled as the sample `cme-mdp-3-sbe.xml`) to browse template layouts, and pick **CME MDP 3.0 UDP packet** in **Framing** to show the 12 byte packet header, 2 byte `MsgSize` and 8 byte SBE header ahead of each message (or **No framing** to start at byte 0 of the root block).

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

[Open sample CME order book](https://structure.fi/tools/market-data-visualizer/app/#open?sample=cme-mdp3&guide=cme-mdp3&section=block-23)

See [replay CME order books](https://structure.fi/tools/market-data-visualizer/guides/replay-cme-order-books.md), [order books by price and by order](https://structure.fi/guides/order-books-by-price-and-by-order/) and [find trades, resets and gaps](https://structure.fi/tools/market-data-visualizer/guides/find-events-in-a-cme-capture.md).

## Sources

- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457219613
- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457222936
- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457638617/MDP+3.0+-+SBE+Technical+Headers
- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457325932/MDP+3.0+-+SBE+Message+Header
- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457323107/MDP+3.0+-+Message+Specification
- https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457672149

Reviewed by Structure on 2026-11-24. Last changed 2026-11-26.
