Easiest Algorithmic Trading Platform in Python
Build, backtest, and deploy trading algorithms from home — all in one place.
Supports Interactive Brokers (IBKR TWS & IB Gateway) and Robinhood.
def handle_data(context, data):
sma_short = data.history('SPY', 'close', 50).mean()
sma_long = data.history('SPY', 'close', 200).mean()
if sma_short > sma_long:
order_target_percent('SPY', 1.0)
What Is IBridgePy?
IBridgePy is a self-hosted Python algorithmic trading platform that lets you write automated trading strategies and execute them with Interactive Brokers (IBKR TWS & IB Gateway) and Robinhood. You write your strategy in Python on your own computer, validate it with historical data (backtesting), and deploy it live — using the exact same code. No cloud lock-in, no restrictions on Python packages (pandas, numpy, scikit-learn, PyTorch), and your strategies never leave your machine.
Who is it for?
Traders who want to automate their strategies without learning complex broker APIs. Whether you're a beginner writing your first moving average crossover or an experienced quant building multi-account portfolio systems, IBridgePy handles the broker connection so you can focus on your trading logic.
IBridgePy was developed by Dr. Hui Liu, a respected figure in the trading community. Interactive Brokers has featured IBridgePy in their education center. Learn more about IBridgePy →
Privacy Protection
Run IBridgePy on your own computer. Your trading strategies and data never leave your machine.
Seamless Backtesting
Use the same code for backtesting and live trading. Validate strategies before risking real capital.
Multi-Account Management
Manage multiple trading accounts simultaneously with a single IBridgePy instance.
Any Python Package
Use pandas, numpy, scikit-learn, or any Python library in your trading strategies. No restrictions.
What Customers Say
“Our firm uses IBridgePy to build automated trading robots. IBridgePy is super-powerful and easy to use! Highly recommend any firm to try it out!”
“We are happy to announce that we have selected IBridgePy as our preferred platform to connect our autonomous AI trading platform. IBridgePy is flexible and easy.”
“IBridgePy is a good algorithmic trading platform. We believe that it makes great technical contribution to IBKR campus audiences and really hope more people know it.”
Live Strategy Performance
Starting June 2026, our investment team publishes results from 3 algorithmic trading strategies powered by IBridgePy. Portfolio values are recorded at 4:30 PM Pacific Time each trading day after the U.S. market closes. All strategies are benchmarked against SPY (S&P 500 ETF).
Anyone can submit their trading records to IBridgePy to have their strategy performance displayed here. View full details →
| Strategy | Tracking Period | Trading Days | Cumulative Return | Details |
|---|---|---|---|---|
| DigitalShare LAB "Principal Payback" Digital Cash-Flow Business | 2026-01-01 to 2026-10-30 | 217 | +6.11% | View → |
| Robust Ensemble | 2026-06-04 to 2026-12-02 | 127 | +3.92% | View → |
| 1F Combo | 2026-06-04 to 2026-12-02 | 127 | -1.65% | View → |
| Semiconductor blend | 2026-06-04 to 2026-12-02 | 127 | -2.84% | View → |
Disclaimer: The information presented here is for educational and informational purposes only. It does not constitute investment advice, financial guidance, or a recommendation to buy or sell any securities. Past performance is not indicative of future results. Trading involves substantial risk of loss and is not suitable for all investors. Always consult a qualified financial advisor before making investment decisions.
Developer Guides & IBKR Python Comparisons
Step-by-step technical references for connecting Python to Interactive Brokers, comparing IBKR API libraries, and backtesting live strategies:
- IBridgePy vs. ib_insync / ib_async vs. Official IBKR ibapi — Feature & code comparison table
- How to Connect Python to Interactive Brokers (TWS & IB Gateway Setup) — Port numbers, settings & starter bot
- Backtest & Live Trade the Same Python Code with IBKR — Unified strategy workflow
- Python Options & Futures Trading with Interactive Brokers —
superSymbol()contract examples
Frequently Asked Questions
How is IBridgePy different from the official IBKR ibapi or ib_insync?
IBridgePy provides a high-level Quantopian-style API (initialize, handle_data, order_target_percent, request_historical_data) with built-in backtesting so you can backtest and live trade using the exact same Python code without writing low-level socket callbacks.
Does IBridgePy upload my trading strategies to the cloud?
No. IBridgePy runs 100% locally on your own Windows, macOS, or Linux computer or private server. Your code, API credentials, and market data never leave your machine.
Which securities and brokers does IBridgePy support?
IBridgePy supports US and global stocks, ETFs, options, futures, and forex through Interactive Brokers (IBKR TWS & IB Gateway) as well as Robinhood.