# LEAN (QuantConnect)

> Open source algorithmic trading engine for backtesting and live trading in Python and C#

Source: https://talira.ai/catalog/lean-quantconnect-hxzb5g48
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Framework, Command-line tool
- Categories: [business / finance / algorithmic trading](https://talira.ai/categories/business/finance/algorithmic-trading)
- Licence: Apache-2.0[^2]
- Pricing: Free tier[^2][^3]
- Pricing notes: LEAN is free under Apache-2.0. QuantConnect's hosted platform has Free, Quant Researcher, Team, Trading Firm and Institution plans; the pricing page needs JavaScript for its prices.
- Free tier: yes[^2][^3]
- Self-hostable: yes[^1]
- Cloud hosted: yes[^3]
- Backed by: [QuantConnect](https://talira.ai/orgs/quantconnect.md)

LEAN is QuantConnect's open source, event-driven algorithmic trading engine: you write strategies in Python or C#, backtest them and trade live across equities, forex, options, futures and crypto, with alternative data and live-trading support out of the box. It's modular, with every component pluggable and models shipped for all the major plug-in points, and the Lean CLI (`pip install lean`) creates projects, runs backtests locally in Docker and deploys. QuantConnect also runs a hosted platform built on LEAN, with a free plan and paid plans.

## Links

- Website: https://www.lean.io/
- GitHub: https://github.com/QuantConnect/Lean
- Docs: https://www.lean.io/docs/

## Problems it solves

- backtest a trading strategy in Python
- an open source algorithmic trading engine I can run myself
- move a backtested strategy to live trading

## Features

- event-driven backtesting and live trading
- Python and C# strategies
- equities, forex, options, futures and crypto
- pluggable models
- Lean CLI with Docker

## Ways to run it

### LEAN engine

You run it, Apache-2.0. Price: free.[^1][^2]

Only in this edition:

- backtesting and live trading engine
- Lean CLI

You arrange:

- market data and brokerage connections

Self-hosting docs: https://github.com/QuantConnect/Lean

### QuantConnect cloud

Hosted by QuantConnect. Price: not published.[^3]

Only in this edition:

- Free, Quant Researcher, Team, Trading Firm and Institution plans
- hosted data and live trading

Pricing: https://www.quantconnect.com/pricing

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.87, momentum 0.67, community 0.96, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 194 commits in the last 90 days
- latest release v2.4.0.1 9.3 years ago
- 22.8k GitHub stars
- 247 contributors
- accepts sponsorship (Github)
- backed by QuantConnect

## Alternatives

- [Freqtrade](https://talira.ai/catalog/freqtrade-vmhfjxx5.md): A free, open source crypto trading bot in Python
- [abu (阿布量化)](https://talira.ai/catalog/abu-8mgvvvr5.md): Open source Python quantitative trading system with backtesting and machine-learning strategy optimization
- [QuantDinger](https://talira.ai/catalog/quantdinger-4gzjx5cd.md): Self-hosted AI trading platform: Python strategies, AI market research, backtesting and paper or live trading
- [Fincept Terminal](https://talira.ai/catalog/fincept-terminal-7crmq6b7.md): Open source financial terminal for market analytics, research, backtesting and algo trading
- [Qlib](https://talira.ai/catalog/qlib-v98z2m26.md): Microsoft's open source AI platform for quantitative investment research
- [Qbot](https://talira.ai/catalog/qbot-g42yy8nv.md): Python platform for quantitative trading research: data, AI strategies, backtesting, paper trading and automated live trading

## Sources

[^1]: https://github.com/QuantConnect/Lean/blob/master/readme.md (checked 29 Nov 2026)
[^2]: https://github.com/QuantConnect/Lean/blob/master/LICENSE (checked 29 Nov 2026)
[^3]: https://www.quantconnect.com/pricing (checked 29 Nov 2026)
