Lean CLI

Local Development, Cloud Backtesting

  • lean init
  • lean create-project “My Project”
  • lean backtest “My Project”

Installation: pip install lean

Lean more about Lean CLI

youtube-iconWatch this video for this in-depth introduction to the Lean CLI

QuantConnect CLI
Cli Cloud

Harness The Power of LEAN Locally or in The cloud

Seamlessly develop locally in your favorite development environment, with full autocomplete and debugging support to quickly and easily identify problems with your strategy

Setup Your Local Environment

Supported IDE's

pycharm rider vscode visual studio
LEAN CLI

>_ lean backtest

>_ lean cloud backtest

Cli Sync

Easy Synchronization

Synchronize your projects to the cloud to work on the go with QuantConnect’s Web-IDE or to perform cross validation of your results.

Want more processing power than your local environment? Push your code to cloud and then spin up a cluster to run your backtesting.

LEAN CLI

>_ lean cloud push

>_ lean cloud pull

cli tool

Fully Featured Tool

LEAN CLI is a feature-complete tool to leverage the LEAN technology for your algorithmic trading research.

Kick off with our Getting Started Tutorial today.

LEAN CLI

>_ Feature List

  • Local / cloud backtesting
  • Autocomplete and debugging environments
  • Local / cloud optimization
  • Local / cloud live trading
  • Jupyter research environments
  • Generate or download data
  • Synchronize projects with cloud
  • Create algorithm reports
  • Install Lean CLI: pip install lean
Cli Sync

Download Financial Data

Download QuantConnect’s peer reviewed cloud financial data to run backtests and research with LEAN locally. Data is packaged and sold per symbol-day to keep costs low, and can be setup to automatically download all the data you need.

Supported Data Types

  • US Equities and Coarse Universes
  • OANDA Forex and CFD
  • US Options
  • Crypto
  • Alternative Data Integrations
cli plugins

Upgrade LEAN with Plugins

Super charge your LEAN CLI installation with plugins from QuantConnect to popular institutional data sources and markets

Type: Data Source, Brokerage

Route orders to any of the Bloomberg EMSX network destinations, and source data for your research with Bloomberg datafeeds.

  • Research, Backtest, and Live Data Sources
  • Live Trade with LEAN through EMSX Network
  • 1300+ Execution Destinations

LEAN GUI and QuantConnect Corporate Actions dataset required for best experience.

Type: Brokerage Router

Route orders to 30+ destinations in Trading Technologies network for best in class futures contract execution.

  • Route to 30+ Brokerage Destinations
  • Stateful Restart with Portfolio Management
  • UAT or Live Mode Support

Type: Brokerage Router

US Equities brokerage for volume trading with the lowest latency and fees possible. Cross-connected with QuantConnect's racks.

  • Routing to US Prime Brokerages
  • Stateful Restart with Portfolio Management
  • Cross-Connect in QuantConnect Racks