# erdewit/ib_insync

Python sync/async framework for Interactive Brokers API

Repository: https://github.com/erdewit/ib_insync
Canonical: https://ross.abutalabs.com/products/ib_insync
Language: Python
License: BSD-2-Clause
License Family: permissive
Topics: python, asyncio, interactive-brokers, twsapi, ibapi, trading
Archived: true
Last push: 2024-03-14T19:50:06+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3339, "days_push": 902, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3284, forks 875 (observed 2026-08-28T04:07:53.715438+00:00)

## What it is
A Python library providing a sync and asyncio-based framework for the Interactive Brokers Trader Workstation API, making it easy to connect to TWS or IB Gateway for trading and market data. It offers a linear programming style, live data syncing, and interactive use in Jupyter notebooks.

## Use cases
- download historical market data from Interactive Brokers
- place and manage trades programmatically via TWS API
- stream live market data in a Jupyter notebook
- build automated trading strategies with asyncio
- sync account and order state with IB Gateway
- fetch option chains and contract details from Interactive Brokers

## When to choose
- you trade through Interactive Brokers and want a friendlier Python API than the official ibapi
- you need both synchronous and asyncio-based access to TWS/IB Gateway
- you want interactive exploration of live IB data in Jupyter notebooks

## When to avoid
- you need actively maintained software - the author passed away in March 2024 and development has stopped (consider the community fork ib_async)
- you trade with a broker other than Interactive Brokers
- you need a broker-agnostic trading abstraction layer

## Facets
- artifact type: library
- maturity: abandoned
- function: sdk, http-client, streaming, concurrency
- domain: fintech, developer-tools, apis
- platform: python, cross-platform
- tags: interactive-brokers, tws-api, asyncio, algorithmic-trading, market-data, jupyter, trading-api, trading

## Member repositories
- erdewit/ib_insync (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:53.715438+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:43:13.513091+00:00, confidence not recorded.
  - readme: https://github.com/erdewit/ib_insync (fetched 2026-08-28T04:07:53.715438+00:00, sha 9f83ac329d9b)
  - registry_pypi: https://pypi.org/pypi/ib_insync/json (fetched 2026-08-29T09:36:01.686164+00:00, sha 838709537174)
- Data as of 2026-08-30T08:39:29.467469+00:00.
