Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

IbPy

> 编程语言
Open source

Python API for the Interactive Brokers on-line trading system.

1.4K stars0 likes0 views
WebsiteGitHub

About

Python API for the Interactive Brokers on-line trading system.

IbPy - Interactive Brokers Python API

NOTE

Beginning with release 9.73, InteractiveBrokers is now officially supporting a new Python API client (Python 3 only). This should make this repo superfluous except for Python 2.

For more info: https://interactivebrokers.github.io/tws-api/#gsc.tab=0

What is IbPy?

IbPy is a third-party implementation of the API used for accessing the Interactive Brokers online trading system. IbPy implements functionality that the Python programmer can use to connect to IB, request stock ticker data, submit orders for stocks and futures, and more.

Installation

There is a package maintained on PyPI under the name IbPy2, it's version is in sync with the tags on GitHub.

bash
pip install IbPy2

Alternatively, it can be installed from source. From within the IbPy directory, execute:

bash
python setup.py install

Pip also supports installing directly from GitHub, e.g. if you want commit 83b9d08ed9c850d840a6700d0fb9c3ca164f9bff, use

bash
pip install git+https://github.com/blampe/IbPy@83b9d08ed9c850d840a6700d0fb9c3ca164f9bff

How do I use IbPy?

See the IbPy wiki page https://github.com/blampe/IbPy/wiki/Getting-Started

What are the requirements?

  • Python >2.5 or >3.3. Previous versions are not supported.
  • Either a running instance of Trader Workstation (TWS) or IB Gateway.

License

IbPy is distributed under the New BSD License. See the LICENSE file in the release for details.

Note

IbPy is not a product of Interactive Brokers, nor is this project affiliated with IB.

Source code

https://github.com/blampe/IbPy

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言