Summary
In this chapter, we were introduced to the evolution of trading from the pits to the electronic trading platform, and learned how algorithmic trading came about. We looked at some brokers offering API access to their trading service offering. To help us get started on our journey in developing an algorithmic trading system, we used the TWS of IB and the IbPy Python module.
In our first trading program, we successfully sent an order to our broker through the TWS API using a demonstration account. Next, we developed a simple algorithmic trading system. We started by requesting the market data and account updates from the server. With the captured real-time information, we implemented a mean-reverting algorithm to trade the markets. Since ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access