Designing a framework for low-latency C++ trading algorithms
Now that we have discussed the market data consumer and order gateway client components on the market participants’ trading systems, the last component we need to discuss is the framework that makes trading decisions. This component is one of the most important components in a trading system since this is where intelligence lies. By intelligence, we mean the system that processes normalized market data updates, builds a view into the market conditions, and computes trading analytics to find trading opportunities and execute trades. Obviously, this component relies on the market data consumer to receive decoded and normalized market data updates and uses the order gateway client component to send order requests to and receive order responses from the exchange in a decoded and normalized format.
Building the order book
The market participant needs to construct the limit order book based on the market data that...