Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Python sync/async framework for Interactive Brokers API (replaces ib_insync)
| Date | Stars |
|---|---|
| 2026-07-24 | 1697 |
| 2026-07-25 | 1698 |
| 2026-07-28 | 1698 |
| 2026-07-30 | 1698 |
| 2026-08-06 | 1698 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
[](https://github.com/ib-api-reloaded/ib_async/actions) [](#) <!-- [](#) --> [](https://pypi.python.org/pypi/ib_async) [](#) <!-- [](https://pepy.tech/project/ib-insync) --> [](https://ib-api-reloaded.github.io/ib_async/)
# ib_async
## Update
## Introduction
`ib_async` is a Python library that provides a clean, modern interface to Interactive Brokers' Trader Workstation (TWS) and IB Gateway. It handles the complexities of the [IBKR API](https://ibkrcampus.com/ibkr-api-page/twsapi-doc/) so you can focus on building trading applications, research tools, and market data analysis.
### What You Can Build
* **Market Data Applications**: Stream live quotes, historical data, and market depth
* **Trading Systems**: Place, modify, and monitor orders programmatically
* **Portfolio Tools**: Track positions, account balances, and P&L in real-time
* **Research Platforms**: Analyze contract details, option chains, and fundamental data
* **Risk Management**: Monitor exposures and implement automated controls
### Key Features
* **Simple and Intuitive**: Write straightforward Python code without dealing with callback complexity
* **Automatic Synchronization**: The [IB component](https://ib-api-reloaded.github.io/ib_async/api.html#module-ib_async.ib) stays in sync with TWS/Gateway automatically
* **Async-Ready**: Built on [asyncio](https://docs.python.org/3/library/asyncio.html) and [eventkit](https://github.com/erdewit/eventkit) for high-performance applications
* **Jupyter-Friendly**: Interactive development with live data in notebooks
* **Production-Ready**: Robust error handling, reconnection logic, and comprehensive logging
Be sure to take a look at the
[notebooks](https://ib-api-reloaded.github.io/ib_async/notebooks.html),
the [recipes](https://ib-api-reloaded.github.io/ib_async/recipes.html)
and the [API docs](https://ib-api-reloaded.github.io/ib_async/api.html).
## Installation
```
pip install ib_async
```
Requirements:
- Python 3.10 or higher
- We plan to support Python releases [2 years back](https://devguide.python.org/versions/) which allows us to continue adding newer features and performance improvements over time.
- A running IB Gateway application (or TWS with API mode enabled)
- [stable gateway](https://www.interactivebrokers.com/en/trading/ibgateway-stable.php) — updated every few months
- [latest gateway](https://www.interactivebrokers.com/en/trading/ibgateway-latest.php) — updated weekly
- Make sure the [API port is enabled](https://ibkrcampus.com/ibkr-api-page/twsapi-doc/#tws-download) and 'Download open orders on connection' is checked.
- You may also want to increase the Java memory usage under `Configure->Settings->Memory Allocation` to 4096 MB minimum to prevent gateway crashes when loading bulk data.
The ibapi package from IB is not needed. `ib_async` implements the full IBKR API binary protocol internally.
## Build Manually
First, install poetry:
```
pip install poetry -U
```
### Installing Only Library
```
poetry install
```
### Install Everything (enable docs + dev testing)
```
poetry install --with=docs,dev
```
## Generate Docs
```
poetry install --with=docs
poetry run sphinx-build -b html docs html
```
## Check Types
```
poetry run mypy ib_async
```
## Build Package
```
poetry build
```
## Upload Package (if maintaining)
```
poetry install
poetry config pypi-token.pypi your-api-token
poetry publish --build
```
## Setup Interactive Brokers
### 1. Download IB Gateway or TWS
- [IB Gateway (Stable)](https://www.interactivebrExcerpt of 15,636 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:5d76fb50e1fad1d2, topic:trading