lumibot
Python trading framework with AI agents that actually place the trade. Backtest, paper and live trade on 12 brokers: stocks, options, futures, forex, crypto and
What is lumibot?
Python trading framework with AI agents that actually place the trade. Backtest, paper and live trade on 12 brokers: stocks, options, futures, forex, crypto and prediction markets.
Overview of lumibot
What it is
LumiBot is an open-source Python trading framework that allows users to backtest, paper trade, and live trade across 12 brokers. It supports stocks, options, futures, forex, crypto, and prediction markets. The framework integrates AI agents that can generate trading decisions, while keeping a deterministic Python gate for risk control. It is developed by Lumiwealth and licensed under GPL-3.0.
Key features
- Supports 12 brokers including Alpaca, Interactive Brokers, Tradier, Schwab, Tradovate, TopstepX (via ProjectX), Bitunix, Polymarket, and selected CCXT exchanges.
- Allows the same strategy code to run in backtesting, paper trading, and live trading without rewriting.
- Includes built-in AI agent runtime for creating agentic trading workflows, with the ability to add Python guardrails.
- Provides a CLI tool (
lumibot) for quick setup, backtesting, and running strategies. - Offers templates for both AI-driven and traditional Python strategies.
- Supports backtesting with historical data from Yahoo Finance (free daily data) and other sources.
- Enables hybrid strategies that combine AI agents with deterministic Python rules.
Use cases
- Developing and backtesting algorithmic trading strategies for stocks, options, futures, forex, crypto, and prediction markets.
- Running paper trading or live trading with the same strategy code after backtesting.
- Experimenting with AI agents for trade decision-making while maintaining Python-based risk controls.
- Migrating from other frameworks like Backtrader to a framework that supports both backtesting and live execution across multiple asset classes.
Getting started
bashpip install lumibotlumibot demoThis runs a real backtest on free daily data and writes a tearsheet. No API key, broker account, or configuration is required. For a custom strategy, use lumibot init my-bot --template ai (requires an OpenAI API key) or --template python for a traditional strategy. See the repository README for full setup instructions.
License and pricing
LumiBot is open-source under the GPL-3.0 license. Pricing is not stated; the project is listed as open source.
Based on the project's public README and repository metadata.