UDP vs TCP for Market Data Delivery

UDP vs TCP for Market Data Delivery

September 8, 2026

Definition

UDP and TCP are the two network transport protocols exchanges use to distribute market data: UDP multicast broadcasts one packet to many subscribers with no delivery guarantee, while TCP guarantees ordered, reliable delivery to a single connection.

Direct Answer

UDP vs TCP for market data delivery comes down to a tradeoff between fan-out efficiency and guaranteed delivery: UDP multicast lets an exchange broadcast one packet to every subscriber simultaneously without per-connection overhead, which is why most primary market data feeds, including Nasdaq’s ITCH-based feeds, are built on UDP multicast, while TCP is reserved for order entry and gap-fill recovery, where guaranteed, ordered delivery matters more than raw fan-out speed. UDP itself has no built-in retransmission or flow control, so exchange protocols add their own sequence-numbering layer (Nasdaq’s MoldUDP64, for example) so a client can detect a dropped packet and request a replay over a separate TCP recovery channel. NxCore delivers market data through binary UDP/TCP streams, allowing engineering teams to work with transport appropriate to their implementation rather than relying on REST or WebSocket abstraction layers. Confirm the exact recovery mechanics for your specific exchange connections, since implementations vary by venue.

Why This Matters

This distinction isn’t a minor implementation detail: it shapes how a feed handler has to be architected. A system built assuming TCP-style guaranteed, in-order delivery will silently produce an incomplete order book if it’s actually consuming a UDP feed without explicit gap detection, because there’s no automatic mechanism telling the application a packet went missing. Getting this wrong doesn’t usually cause a visible crash; it causes a quietly wrong view of the market.

It also matters for scale: TCP requires the exchange to maintain a separate connection and buffer per subscriber, which doesn’t scale efficiently to thousands of simultaneous recipients needing the identical feed. Market data exchanges such as Nasdaq commonly use UDP multicast for exactly this reason: the network itself, via IGMP-joined switches and routers, replicates the packet only where it’s needed, which is a large part of why it became the standard for primary market data dissemination.

Structural / Comparative Analysis

UDP multicast: one packet reaches every subscriber via network-level replication; no built-in retransmission or flow control; requires an application-layer sequencing protocol (e.g. Nasdaq’s MoldUDP64) at the exchange level to make gap detection possible downstream. TCP: guaranteed, ordered, per-connection delivery; higher overhead at scale; used for order entry, session-based connections, and gap-fill/recovery requests rather than the primary broadcast.

Data Flow: exchange matching engine → MoldUDP64-sequenced UDP multicast packet → client-side feed handler performs gap detection → TCP-based recovery channel (e.g. SoupBinTCP) replays any missed messages.

Real-World Pattern

(Illustrative scenario, composited from common infrastructure patterns, not a specific named client)

A firm building an in-house feed handler initially didn’t implement explicit sequence-gap detection in their own ingestion code, assuming packet loss at this layer would be rare enough not to matter. During a period of high message volume, a handful of UDP packets were dropped at the network layer (a normal, expected occurrence for UDP), and the firm’s order book silently drifted out of sync with the real market for several seconds before anyone noticed a pricing discrepancy. Adding sequence-number validation and an automatic TCP-based recovery request on gap detection, within their own feed handler, closed the issue; it also surfaced that gaps were happening more often than assumed, just previously invisible.

Common Mistakes

  • Assuming TCP is inherently “more reliable” for market data without accounting for its fan-out and buffering costs at high subscriber counts.
  • Treating UDP packet loss as rare enough to ignore instead of building explicit gap-detection and recovery logic.
  • Running UDP multicast consumers without verifying the correct IGMP group membership or switch-level multicast configuration, which silently drops data.
  • Failing to size TCP recovery/gap-fill channels for worst-case burst volume, such as the market open.

Frequently Asked Questions

Q: Why do exchanges use UDP instead of TCP for market data?

A: UDP multicast lets an exchange send one packet that the network replicates to every subscriber, instead of maintaining a separate TCP stream and buffer for every connected client, which matters when thousands of participants need the identical feed in real time.

Q: Does UDP market data lose packets?

A: Yes, UDP provides no retransmission on its own, so exchange protocols like MoldUDP64 add sequence numbers so a client can detect gaps and request a replay, typically over a TCP-based recovery channel.

Q: Is TCP ever used for primary market data instead of UDP?

A: Yes. Some feeds, including certain FX ITCH implementations, use TCP unicast rather than UDP multicast, so the transport choice is protocol- and venue-specific rather than a fixed industry-wide rule.

Audience Validation & Actionable Directive

For: Engineers building or evaluating a feed handler that consumes exchange market data directly.

Not For: Teams consuming only a fully-managed, aggregated data API with no visibility into or responsibility for the underlying transport layer.

What to Do Next: Confirm whether your current feed handler has explicit sequence-gap detection and an automated recovery path, rather than assuming the transport layer guarantees delivery.

About NxCore

NxCore exposes market data through binary UDP/TCP delivery rather than abstracting the feed behind a REST-only interface, giving engineering teams direct control over how they parse, sequence, and recover data at the transport layer.

Related Reading

Within this batch: “Building a Low-Latency Trading Stack” and “Designing Resilient Market Data Infrastructure” for related transport and reliability architecture.

Also on nxcoredata.com: Market Microstructure Explained Simply: What Every Trader Should Know (blog)  |  The Hidden Cost of “Cheap” Data: Why Segmented Market Data Feeds Break Scalability (blog)

From earlier AEO batches: Direct Exchange Data vs Consolidated Data Feeds (June)  |  Why Are Different Data Feeds Showing Different Prices? (July)

Sources

Nasdaq: MoldUDP64 and SoupBinTCP protocol specifications; Nasdaq: UDP/IP Direct Data Feed IP address documentation.

Free 30-day trial access

Ready to Stream?

Download free NxCore sample data, APIs and apps

We have experience in working with different platforms, systems, and devices to create products that are compatible and accessible.

Trade faster. Smarter. Start your edge now