AI Card Bao CPANEL.AICARDBAO.COM
Home / open source / Lean
AI TOOL / #12946

Lean

QuantConnect is an officially open-source algorithm trading engine that supports the development of strategies in Python and C#, as well as the integration of backtesting results with live trading.

Introduction

[Lean Home][1] | [Documentation][2] | [Download Zip][3] | [Docker Hub][8] | [Nuget][9]

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.

LEAN is modular in design, with each component pluggable and customizable. It ships with models for all major plug-in points.

QuantConnect Lean CLI is a command-line interface tool for interacting with the Lean algorithmic trading engine, which is an open-source platform for backtesting and live trading algorithms in multiple financial markets. It allows developers to manage projects, run backtests, deploy live algorithms, and perform various other tasks related to algorithmic trading directly from the terminal. The CLI simplifies the workflow by automating tasks, enabling seamless integration with cloud services, and facilitating collaboration with the QuantConnect community. It's designed for quant developers who need a powerful and flexible tool to streamline their trading strategies. Please watch the instructions videos to learn more.

Installation

pip install lean

Commands

Create a new project containing starter code

lean project-create

Run a local Jupyter Lab environment using Docker

lean research

Backtest a project locally using Docker

lean backtest

Optimize a project locally using Docker

lean optimize

Start live trading a project locally using Docker

lean live

Download the LEAN CLI Cheat Sheet for the full list of commands.

This section will cover how to install lean locally for you to use in your environment. For most users we strongly recommend the LEAN CLI which is prebuilt and runs on all platforms. Refer to the following readme files for a detailed guide regarding using your local IDE with Lean.

To install locally, download the zip file with the latest master and unzip it to your favorite location. Alternatively, install Git and clone the repo:

git clone https://github.com/QuantConnect/Lean.git
cd Lean

macOS

NOTE: Visual Studio for Mac has been discontinued, use Visual Studio Code instead

  • Install Visual Studio Code for Mac
  • Install the C# Dev Kit extension
  • Install dotnet 10 SDK:
  • To build the solution, either:
  • choose Run Task > build from the Panel task dropdown, or
  • from the command line run `` dotnet build ``
  • To run the solution, either:
  • choose Run and Debug from the Activity Bar, then click Launch, or
  • click F5, or
  • from the command line run `` cd Launcher/bin/Debug dotnet QuantConnect.Lean.Launcher.dll ``

Linux (Debian, Ubuntu)

dotnet build QuantConnect.Lean.sln
  • Run Lean:
cd Launcher/bin/Debug
dotnet QuantConnect.Lean.Launcher.dll

Windows

  • Install Visual Studio
  • Open QuantConnect.Lean.sln in Visual Studio
  • Build the solution by clicking Build Menu -> Build Solution (this should trigger the NuGet package restore)
  • Press F5 to run

Python Support

A full explanation of the Python installation process can be found in the Algorithm.Python project.

Local-Cloud Hybrid Development.

Seamlessly develop locally in your favorite development environment, with full autocomplete and debugging support to quickly and easily identify problems with your strategy. Please see the CLI Home for more information.

Issues and Feature Requests ##

Please submit bugs and feature requests as an issue to the [Lean Repository][5]. Before submitting an issue, please read the instructions to ensure it is not duplicated.

Mailing List ##

The mailing list for the project can be found on [LEAN Forum][6]. Please use this to ask for assistance with your installation and setup questions.

Contributors and Pull Requests ##

Contributions are warmly welcomed, but we ask you to read the existing code to see how it is formatted and commented on and ensure contributions match the existing style. All code submissions must include accompanying tests. Please see the [contributor guidelines][7]. All accepted pull requests will get a $50 cloud credit on QuantConnect. Once your pull request has been merged, write to us at [email protected] with a link to your PR to claim your free live trading. QC

Visits:49 Updated:2026-12-04 AI tools

Related

Rustdesk What tool do you use when you need remote control? Should I use QQ or use these classic remote tools? TeamViewer, Sunflower, ToDesk, AnyDesk, RustDesk, GotoHTTP! If I were asked to recommend one I would recommend Ru Standard Map Service The “Standard Map Service” website is a publicly available platform provided by the Ministry of Natural Resources of China, dedicated to the distribution of standard map materials. This website contains all standard map resources for various provinces, municipalities, and counties across the country. Currently, it offers 249 maps of China, 79 world maps, and 10 thematic maps. These standard maps are compiled in accordance with Chinese regulations and standards. Enshan Wireless Forum The Enshan Wireless Forum is known as a holy place for wireless router enthusiasts. This website is a technical exchange forum for routers. Here you can find tutorials on various wireless router hardware modifications and fault repairs. If you want to flash your router, you can find almost all router firmware revisions here Baidu network disk expansion At 02:52:26 on December 1, 2023, all active links were offline! If you want to download Baidu Netdisk faster, you can check this link: https://www.maxiaobang.com/4889.html Newly registered Baidu Gofans GoFans is a website dedicated to collecting information about discounts and free trials for genuine Apple software. Every day, it compiles a list of many time-limited free apps and software with reduced prices. It is one of the essential websites for Apple users – a visit every now and then will always lead you to discovering great free offers or discounted programs! The website’s interface is very simple and user-friendly… Tower Defense Mini Game Thanks to the recommendation from my fan group member @H, this is a super streamlined version of a tower defense game. There are four types of weapons available, and the monsters do not follow fixed paths. You can use obstacles and the placement of weapons to restrict their movement. The weapons can also be upgraded. This is the perfect tool for procrastinating at work; I could play this game for an entire day.