ib_async (Interactive Brokers)
Python library to connect to Interactive Brokers through TWS or IB Gateway; successor of the popular ib_insync.
The most comfortable way to automate Interactive Brokers from Python.
Who it is for
Interactive Brokers clients who want to automate in Python without fighting the official API.
Strengths
- Modern Python interface to TWS and IB Gateway.
- Continuation of ib_insync, which stopped being maintained after its author passed away in early 2024.
Good to know
- Not official: the project explicitly states it is not affiliated with Interactive Brokers.
- Requires IB Gateway or TWS running with the API enabled: you have to keep that application up.
Want a bot built on ib_async (Interactive Brokers), or something similar?
We set it up, connect it to your accounts and keep it running.
Real-life uses
Portfolio rebalancing and DCA
Buys a fixed amount on schedule or rebalances to target weights across ETFs or crypto.
Risk monitor
Watches drawdown, exposure and margin across accounts and warns you before it is too late.
Sources
Every fact on this page comes from these sources, checked on 2026-10-24. If something has changed, the source wins; tell us at hello@heybotify.com.
- https://github.com/ib-api-reloaded/ib_async: what it is, requirements, history, license and that it is not official
Alternatives in Broker & exchange APIs
Binance Python connectors
Binance's official, auto-generated Python SDKs for its APIs, split into separate packages for spot, USDⓈ-M and COIN-M futures, options, margin and more.
CCXT
Library that unifies the APIs of 100+ crypto exchanges behind a single interface, available in seven languages.
Coinbase Advanced API Python SDK
Coinbase's official Python SDK for the Advanced Trade REST and WebSocket APIs.
pybit (Bybit)
Bybit's official lightweight Python connector for its HTTP and WebSocket APIs, covering spot, derivatives and options.