Interactive Brokers object oriented Python API course

In this course you will learn how to automate your strategy using the python API and the Interactive Brokers platform

Have you perfected your trading strategy and are you now ready to take the next step and have your strategy automatically trading without your intervention? Or are you interested in automatically testing new strategies on a paper trading account with fictional money? Whichever is the case, this course will help you achieve your trading goals, from setting up a paper trading account to fully automatically placing orders according to your strategy.

What you’ll learn

  • Install all the software needed for the API.
  • Open and configure your account for automated trading.
  • The basic api structure.
  • Defining financial instruments.
  • Retrieving option chains.
  • Retrieving single prices.
  • Retrieving price streams.
  • Getting historical market data.
  • Defining limit order.
  • Defining market orders.
  • Attaching stop loss and take profit orders.
  • Retrieving order status.
  • Order time conditioning.
  • Retrieving profit and loss data.
  • Retrieving open position data.
  • How to automate a strategy 24/7.
  • How to interface with the API using OOP.

Course Content

  • Installing Software –> 1 lecture • 13min.
  • Demo account, Paper trading account, Multiple users & Account settings –> 1 lecture • 8min.
  • Api interface –> 12 lectures • 3hr 4min.
  • Moving Average Example –> 1 lecture • 52min.
  • Running the script 24/7 –> 1 lecture • 2min.

Interactive Brokers object oriented Python API course

Requirements

  • General Python knowledge.
  • General knowledge about financial instruments.

Have you perfected your trading strategy and are you now ready to take the next step and have your strategy automatically trading without your intervention? Or are you interested in automatically testing new strategies on a paper trading account with fictional money? Whichever is the case, this course will help you achieve your trading goals, from setting up a paper trading account to fully automatically placing orders according to your strategy.

 

The course is divided up into multiple parts, each explaining a different topic. We will start by installing all the necessary software, then we will go over all the different account types and settings you need for automating your strategy. When all the software is installed, we will move on to writing an interface for the interactive brokers api. This interface will be the basis for your trading application and it will contain general functions to interact with the API. You will then later be able to use these functions and classes yourself to automate your own strategy. Towards the end of the course we will write an example application that trades the EUR USD forex pair according to the moving average indicator. I will show you how to set up the script to run 24/7. Each part of the course will contain multiple videos where I write code while explaining what everything does. And every part of the course will include the python file we made in the video so that you can experiment with the code yourself. The code will be written according to the PEP8 style guidelines and will be object oriented so everything is easy to understand and flexible to use.

Get Tutorial