Skip to content

Python class to simplify working with the Interactive Brokers API.

License

Notifications You must be signed in to change notification settings

brentjm/Interactive-Brokers-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Brokers API

Python 3 classes to facilitate using the Interactive Brokers Python API. The class creates a separate thread for the IB API, so that it can be used interactively from a shell or Jupyter Lab.

Getting Started

  • Install Interactive Brokers Trader Work Station.
  • Install Interactive Brokders API
  • Start the TWS (or IB Gateway software), and follow the instructions for settings on the API.
  • Clone this repository git clone https://github.com/brentjm/Interactive-Brokers-API.git
  • Change the directory to the file containing ib_api.py
  • In a python terminal (e.g. Jupyter Lab), get a reference to the API. $ib_api = ib_api.main(port=7496) Use port 7497 for paper trading.

Example

Demo Jupyter Lab Notebook

Author

Brent Maranzano

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Python class to simplify working with the Interactive Brokers API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages