LEAN is the world's leading open-source quantitative trading technology. Research, backtest, optimize, and then live-trade on hundreds of venues.
LEAN is an event-driven, professional-caliber algorithmic trading platform built with a passion for elegant engineering and deep quant concept modeling. Out-of-the-box alternative data and live-trading support.
Automated accounting for splits, dividends, and corporate actions; listings, delistings, mergers, and splits.
Avoid selection bias with algorithmically selected assets. Create and select asset universes based on proprietary data and indicators.
Automatically track portfolio performance, profit and loss, buying power, and holdings across multiple asset classes and margin models in the same strategy.
Trigger regular functions to occur at desired times — during market hours, on certain days of the week, or at specific times of the day.
Backtest on almost any time series and import your proprietary signal data into your strategy.
Everything is configurable and pluggable. LEAN's highly modular foundation can easily be extended for your fund needs.
Get LEAN Today
Download NowLEAN is modular in design, with each component pluggable and customizable. It ships with models for all major plug-in points.
Use margin, fill, and slippage models to accurately simulate assets and brokerages.
100+ popular technical indicators built, tested, and ready for use. Applicable to any data source.
Simulate brokerage fees, order support, and API behavior nuances with brokerage models.
Customize fee models to handle rebates and dynamic order pricing.
Simulate T+3 settlement, margin trading, option assignment, and early exercise models.
Backtest and live trade on your signals, sourced from streaming socket, database, or file sources.
Jump-Start Your Fund
Download LEAN CLIJoin a global community of quants, engineers, and scientists who chose LEAN for their algorithmic trading. Leverage the power of open-source for your fund.
Contributing to the code base.
Hundreds of C# & Python open-source examples.
Users cloning LEAN for their private fund use.
Successfully deployed live on LEAN since 2015.
Shared through the community forum.
Battle-tested live trading platform.
LEAN is free to download and extend for commercial purposes. QuantConnect believes in the power of a community of passionate users. Check out our drumbeat.
We live this belief by making LEAN easy to use locally and providing tutorials to ensure there is no vendor lock-in.
The Future of Quantitative Trading
Download LEANChosen by Professionals
Choose LEAN for Your Trading DeskLEAN Algorithm Framework bakes in key quantitative finance concepts, providing you with a well-defined scaffolding to base your algorithm. The framework allows you to plug in and reuse existing modules created by QuantConnect to radically accelerate your process.
Select a universe of assets with predefined filter criteria to reduce selection bias, or pick from one of the hundreds of universe selection models to quickly get an index of the most tradable assets.
Generate an expected return signal for the assets you've selected from your universe. Fast-track algorithm development by spending the majority of your effort developing alpha insights, reusing pluggable modules for other parts of your algorithm.
Using the defined signals, create a weighted combination of assets to form your ideal portfolio. LEAN ships with many pre-made portfolio-construction models, including Equal Weighting, Mean-Variance, and Black Litterman Portfolios.
Execute your target portfolio efficiently and quickly with pluggable execution algorithms. Quickly backtest different execution models to choose your optimal execution strategy.
Adjust position sizes and manage post-trade risk with plug-in risk models. Risk models can be passive or active by hedging exposed positions as required. Combine multiple risk models to handle a range of market conditions.
Focus on What Matters
Install LEAN CLILEAN is fully open-source, able to run on-premise, and customized to your fund's needs. With a permissive Apache 2.0 license, LEAN flies through the strictest compliance.
LEAN works on Equities, Forex, Options, Futures, Future Option, Indexes, Index Options, Crypto, and CFD Assets. All assets are managed from a central portfolio, allowing you to trade on all nine asset classes at the same time.
Seamlessly deploy to Windows, Mac OS, and Linux Platforms.
Use the right language for your strategy needs and team competency. LEAN supports Python for top-of-the-line machine learning, or C# for speed.
A Fully Open-Source Foundation
Start TodayLEAN integrates with 40 price, fundamental, and alternative data sources, all preformatted, point in time, and ready for your fund.
Code locally in VSCode and backtest in the cloud with QuantConnect data and computing. Monitor your backtests from your IDE.
Iterate rapidly in a LEAN-Enabled Jupyter Lab command line environment with all of the ETL (exchange transform load) dataset work done.
Use bundled implementations to popular data vendors and broker live data feeds for your locally hosted strategies.
Download data from popular online repositories and brokerages into LEAN format automatically. Pull any of the QuantConnect Cloud data on-premise in LEAN format for easy manipulation.
Harness LEAN
Download Now