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.
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).
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 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.
Because UDP delivers datagrams and SBE does not mark message boundaries, CME adds two framing layers not declared in the XML schema:
- Packet header (12 bytes, once per packet):
MsgSeqNum(uint32, per-channel sequence number incrementing by 1 per packet and resetting weekly), thenSendingTime(uint64, nanoseconds since the Unix epoch—see timestamps as integers). MsgSize(uint16, before each message): total byte length of this message, includingMsgSizeitself and the SBE header. AddMsgSizeto its start offset to reach the next message.- 8-byte SBE message header:
blockLength,templateId,schemaId,version(fouruint16fields). - SBE message body (as SBE lays it out): root block, repeating groups, 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
int64prices (fixed-point integers). - Optional types with explicit 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).
Get the schema
- Address:
ftp://ftp.cmegroup.com/SBEFix/Production/Templates/templates_FixBinary.xml(plain XML; older versions sit inArchive/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; usecurlor 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.
In the Market Data Visualizer
The app reads MDP 3.0 in two ways:
- Captured market data: drop classic
.pcap,.pcap.gzor.pcap.zstfiles to replay order books by price and by order with decoded messages beside raw bytes. Fixed layouts cover channel resets (ChannelReset4), volume (MDIncrementalRefreshVolume37), book updates (MDIncrementalRefreshBook46,MDIncrementalRefreshOrderBook47), trades (MDIncrementalRefreshTradeSummary48), snapshots (SnapshotFullRefresh52,SnapshotFullRefreshOrderBook53) and definitions (MDInstrumentDefinitionFuture54,MDInstrumentDefinitionOption55,MDInstrumentDefinitionSpread56) without a schema file. - The schema: open CME's
templates_FixBinary.xml(version 13 is bundled as the samplecme-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 byteMsgSizeand 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
See replay CME order books, order books by price and by order and find trades, resets and gaps.
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.