
In simple English
This tool connects your Python code to the Interactive Brokers platform. You can pull live stock prices, check your account balance, and place trades automatically. It hides the messy details of the official broker software. It saves you from writing complex connection code by hand. The library is free to use under a permissive licence.
What it is
A Python library that provides a clean, modern interface for the Interactive Brokers Trader Workstation and IB Gateway. It replaces the older ib_insync project with active maintenance and ongoing updates.
What it is good for
Solo builders and traders who want to build custom trading algorithms, portfolio trackers, or market data collection scripts in Python without fighting the raw broker API.
- Lets you write straightforward Python code instead of managing tedious broker callbacks.
- Works smoothly inside Jupyter notebooks for interactive data analysis.
- Handles automatic reconnection and error logging for unattended scripts.
- Requires a running instance of the proprietary Trader Workstation or IB Gateway application to function.
- Needs at least 4 GB of RAM allocated to the broker gateway to prevent crashes during bulk data loads.
- Requires a funded account with Interactive Brokers to test live order execution.
The official Interactive Brokers Python API client and manual order placement
pandas
- jesse-ai/jesse8.7k stars
A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.
- hummingbot/hummingbot20k stars
A free framework for writing and running automated trading programs on cryptocurrency exchanges.
- lballabio/QuantLib7.7k stars
The long-established free library for pricing and risk-managing financial instruments.
pip install ib_async