Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Algorithmic Trading

You're reading from   Learn Algorithmic Trading Build and deploy algorithmic trading systems and strategies using Python and advanced data analysis

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher Packt
ISBN-13 9781789348347
Length 394 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Sebastien Donadio Sebastien Donadio
Author Profile Icon Sebastien Donadio
Sebastien Donadio
Sourav Ghosh Sourav Ghosh
Author Profile Icon Sourav Ghosh
Sourav Ghosh
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Introduction and Environment Setup FREE CHAPTER
2. Algorithmic Trading Fundamentals 3. Section 2: Trading Signal Generation and Strategies
4. Deciphering the Markets with Technical Analysis 5. Predicting the Markets with Basic Machine Learning 6. Section 3: Algorithmic Trading Strategies
7. Classical Trading Strategies Driven by Human Intuition 8. Sophisticated Algorithmic Strategies 9. Managing the Risk of Algorithmic Strategies 10. Section 4: Building a Trading System
11. Building a Trading System in Python 12. Connecting to Trading Exchanges 13. Creating a Backtester in Python 14. Section 5: Challenges in Algorithmic Trading
15. Adapting to Market Participants and Conditions 16. Other Books You May Enjoy

Sending orders and receiving a market response

The main goal of a trading system is to send orders and receive market responses regarding these orders. In this section, we will cover how to send an order and how to get an update on these orders.

The role of the initiator is to initiate a connection with the acceptor. When the connection is established, the trading session is enabled. From this very moment, the trading system can send orders to the exchange. The order will have the following type of message:

8=FIX.4.4|9=155|35=D|11=3440|15=USD|21=2|38=20000|40=D|44=55.945|54=1|55=USD/RUB|59=3|60=20190909-19:35:27|64=SP|107=SPOT|117=b3fc02d3-373e-4632-80a0-e50c2119310e|167=FOR|10=150|

The initiator creates the orders by using the message type 35=D (representing a single order). All the fields of these orders will be filled in by the function of the quickfix library....

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 €18.99/month. Cancel anytime