Communicating with Interactive Brokers API (Python)

Corbin Balzan
The Startup
Published in
12 min readFeb 5, 2020

--

Photo by Fabian Grohs on Unsplash

Introduction

This article is the first part in a series of Interactive Brokers API tutorials. This section shows the initial steps of setting up the code and getting started with the Trader Workstation connection and your own systemic trading program.

Article Source:

The article is based onGuide To Interactive Brokers

Relevant Resources:

Program Overview

To begin programming with the Interactive Brokers API, it is first essential to understand the API information exchange. Our program will be broken up into nine parts:

1) Import statements: This section defines the classes we will import from relative locations in the file tree.

2) Global Variables: These will be used to store and access values throughout the program.

3) Custom classes and methods: These classes and methods will be created as we go along in the program on an as-needed basis.

4) TestWrapper Class: This class implements EWrapper Interface and handles the returns from our server requests. In other words…

--

--