Chapter 3: Understanding the Trading Exchange Dynamics
In the previous chapter, we learned how to create High-Frequency Trading (HFT) systems. We focused intensely on the critical components of a trading system. We also reviewed in detail how to create an order book, which is basically a replication of what an exchange collects from all the trading participants. In this chapter, we are going to study how an exchange works.
We will describe the functional components of an exchange and we will focus in depth on the matching engine. Understanding how the matching engine of an exchange works is one of the most important tasks you will have to do when creating HFT strategies.
This chapter will cover the following topics:
- Understanding trading exchanges
- Understanding matching engines
- Architecting a trading exchange
In Chapter 2, The Critical Components of a Trading System, we gained a decent idea of how to design a trading system. We went over how to design...