Back to all terms

TCP

Quick definition

See unicast.

TCP is commonly used in financial systems for tasks requiring reliable and robust data delivery, including order routing and session management. While UDP multicast is optimized for high-frequency market data dissemination over dedicated, low-congestion networks, TCP is valued in environments where reliability is paramount, such as internet-based connections. Unlike UDP multicast, TCP guarantees delivery, provides retransmission for lost packets, and employs flow control. As a unicast protocol, it establishes one-to-one communication between a sender and a receiver and requires a handshake to set up end-to-end communications before user data can be transmitted. Once the connection is established, data is sent bi-directionally.

Beyond financial data, TCP underpins many everyday applications, including web browsing, email, file transfers, and peer-to-peer sharing. As part of the internet protocol stack (TCP/IP), it allows for communication across diverse systems and networks.

Databento's live API is a socket-based, subscription-style protocol where clients communicate with our live data gateways using a TCP/IP socket. This ensures reliable data transmission, congestion control, and simplified client implementation. With features like error correction, flow control, and efficient retransmission handling, TCP provides consistent performance across a variety of network environments.

UDP multicast is often favored by trading venues for raw feeds on dedicated networks due to its low latency, but TCP offers distinct advantages for scenarios with bandwidth constraints, network congestion, or a high volume of small messages. TTCP's ability to buffer data into full network segments ensures efficient use of network resources, making it ideal for long-haul and internet-based connections. For Databento customers, TCP can even outperform UDP in these conditions. Similarly, some popular ECNs and OTC trading venues use TCP as their primary raw data feed to support customers connecting over the internet.

Unlock market data today with $125 in free credits

Free credit applies to all of our historical data and subscription plans.

Dataset illustration