Project: quantconnect-stubs

Type stubs for QuantConnect's Lean

Project Details

Latest version
16131
Home Page
https://github.com/QuantConnect/quantconnect-stubs-generator
PyPI Page
https://pypi.org/project/quantconnect-stubs/

Project Popularity

PageRank
0.0020668127799627514
Number of downloads
58822

QuantConnect Stubs

This package contains type stubs for QuantConnect's Lean algorithmic trading engine and for parts of the .NET library that are used by Lean.

These stubs can be used by editors to provide type-aware features like autocomplete and auto-imports in QuantConnect strategies written in Python.

After installing the stubs, you can copy the following line to the top of every Python file to have the same imports as the ones that are added by default in the cloud:

from AlgorithmImports import *

This line imports all common QuantConnect members and provides autocomplete for them.