Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Developing High-Frequency Trading Systems

You're reading from  Developing High-Frequency Trading Systems

Product type Book
Published in Jun 2022
Publisher Packt
ISBN-13 9781803242811
Pages 320 pages
Edition 1st Edition
Languages
Authors (3):
Sebastien Donadio Sebastien Donadio
Profile icon Sebastien Donadio
Sourav Ghosh Sourav Ghosh
Profile icon Sourav Ghosh
Romain Rossier Romain Rossier
Profile icon Romain Rossier
View More author details

Table of Contents (16) Chapters

Preface 1. Part 1: Trading Strategies, Trading Systems, and Exchanges
2. Chapter 1: Fundamentals of a High-Frequency Trading System 3. Chapter 2: The Critical Components of a Trading System 4. Chapter 3: Understanding the Trading Exchange Dynamics 5. Part 2: How to Architect a High-Frequency Trading System
6. Chapter 4: HFT System Foundations – From Hardware to OS 7. Chapter 5: Networking in Motion 8. Chapter 6: HFT Optimization – Architecture and Operating System 9. Chapter 7: HFT Optimization – Logging, Performance, and Networking 10. Part 3: Implementation of a High-Frequency Trading System
11. Chapter 8: C++ – The Quest for Microsecond Latency 12. Chapter 9: Java and JVM for Low-Latency Systems 13. Chapter 10: Python – Interpreted but Open to High Performance 14. Chapter 11: High-Frequency FPGA and Crypto 15. Other Books You May Enjoy

Understanding the packet life cycle

In the Learning about network conceptual models section, we explained that to optimize the communication between the exchange and trading systems, we will use copper or optical wire. This wire is connected to the NIC. This wire will transport the packets containing market data from the exchange and orders going to the exchange.

We first need to discuss which message we are passing on this wire. This section will use the FIX protocol we defined in this chapter. Let's consider the following example of a FIX message:

8=FIX.4.2|9=95|35=X|34=5|49=NYSE|52=20160617-23:12:05.551|56=TRADSYS|268=1|279=1|269=1|270=110|271=5|37=9|10=209|.

This FIX message will be the payload of the packet shown in Figure 5.18.

The packet has two main parts. The headers contain information for each layer of the OSI model and a payload containing the FIX message, as shown here:

Figure 5.18 – Packet headers

The Ethernet layer...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}