LEAN from QuantConnect backs research, backtesting, optimization, and live trading for multi-asset strategies in Python and C#.
Overview
LEAN is an event-driven algorithmic trading platform aimed at quantitative developers. It supports building strategies, running historical simulations, tuning parameters, and deploying algorithms to live markets across many asset types described on the project site.
The engine uses a modular layout where brokerage models, fee and slippage models, data feeds, and execution components can be swapped. Built-in pieces cover universe selection, scheduled events, portfolio accounting, corporate actions, technical indicators, and import paths for custom and alternative datasets.
Developers typically work through the LEAN CLI or local IDEs, with Docker-based workflows documented for Jupyter Lab, backtests, optimization, and local live trading. Integrations mentioned include cloud hybrid development with QuantConnect, VS Code, Jupyter Lab, Docker images, and NuGet packages.
The Algorithm Framework outlines staged modules for universe selection, alpha signals, portfolio construction, execution, and risk management so teams can reuse prebuilt models while focusing on signal research.
Key features
- Multi-asset backtesting and live trading
- Python and C# strategy support
- Pluggable brokerage and fee models
- Universe selection and scheduling
- Corporate action aware data
- Technical indicator library
- LEAN CLI and Docker workflows
- Algorithm Framework pipeline modules
Use cases
- Backtest equities and derivatives strategies
- Run optimizations before live deployment
- Trade multiple asset classes in one portfolio
- Import proprietary signals into simulations