Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. AI in Finance
  3. IbPy

IbPy

NOASSERTIONPythonv0.8.0

A third-party Python API client for connecting to Interactive Brokers' online trading system.

Visit WebsiteGitHubGitHub
1.4k stars498 forks0 contributors

What is IbPy?

IbPy is a third-party Python API client for accessing the Interactive Brokers online trading system. It implements functionality that allows Python programmers to connect to IB, request stock ticker data, submit orders for stocks and futures, and manage trading operations programmatically. The library serves as an interface between Python applications and IB's trading infrastructure.

Target Audience

Python developers and quantitative traders who need programmatic access to Interactive Brokers' trading platform for automated trading systems, algorithmic trading strategies, or financial data analysis.

Value Proposition

IbPy provides a Python-native interface to Interactive Brokers' API before IB officially supported Python 3, offering compatibility with both Python 2 and 3. It enables developers to build automated trading systems without relying on IB's official Java-based API.

Overview

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

Use Cases

Best For

  • Building automated trading bots that connect to Interactive Brokers
  • Developing algorithmic trading strategies in Python
  • Retrieving real-time market data from Interactive Brokers programmatically
  • Executing batch orders for stocks and futures through code
  • Creating custom trading dashboards that integrate with IB's platform
  • Backtesting trading strategies using historical data from Interactive Brokers

Not Ideal For

  • Python 3-only projects that can adopt Interactive Brokers' official API, which is now directly supported and maintained by IB.
  • Teams requiring vendor-backed support, regular updates, and guaranteed compatibility with IB's latest features, as IbPy is a third-party implementation.
  • High-frequency trading systems where minimal latency is critical, since the additional abstraction layer in IbPy might introduce performance overhead.

Pros & Cons

Pros

Dual Python Version Support

Supports both Python 2 (versions >2.5) and Python 3 (versions >3.3), as noted in the README, making it essential for legacy systems that haven't migrated to Python 3.

Easy Installation

Available on PyPI as IbPy2, allowing simple installation via pip, which streamlines setup and reduces dependency management headaches.

Community-Driven Resources

Features a wiki with getting-started guides, providing practical examples and documentation for developers to connect to TWS or IB Gateway.

Cons

Deprecated for Modern Use

The README explicitly states that with IB's official Python 3 API release, IbPy is 'superfluous except for Python 2,' indicating it's no longer recommended for new Python 3 projects.

Limited Official Support

As a third-party project not affiliated with Interactive Brokers, it lacks direct vendor support, which can lead to slower bug fixes, compatibility issues with TWS updates, and reliance on community maintenance.

Frequently Asked Questions

Quick Stats

Stars1,426
Forks498
Contributors0
Open Issues0
Last commit9 years ago
CreatedSince 2011

Tags

#python-api#market-data#automated-trading#financial-trading#stock-trading#trading-api

Built With

P
Python

Links & Resources

Website

Included in

AI in Finance5.6k
Auto-fetched 1 day ago

Related Projects

ctpwrapperctpwrapper

上海期货交易所CTP接口 Shanghai Future CTP Interface CTP Python API Wrapper

Stars605
Forks172
Last commit2 months ago
PENDAXPENDAX

Javascript SDK for trading on cryptocurrency exchanges like FTX, OKX, Bybit, and more. Supports API data feeds and WebSocket. Built by the Compendium Team.

Stars49
Forks7
Last commit2 years ago
HuobiFeederHuobiFeeder

【停止维护】新版本更新已迁移到 IBATS 项目组对应名称项目中。连接火币交易所,获取火币实时行情、火币历史行情,保存到mysql数据库同时redis广播,供 ABAT 交易平台进行策略回测、分析,交易使用

Stars37
Forks15
Last commit3 years ago
Trade ItTrade It

MCP for trading on common brokerages (Robinhood, ETrade, Schwab, Webull, Public, tastytrade, Coinbase, Kraken so far)

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub