Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.19 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.19 KB

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