Type stubs for QuantConnect's Lean algorithmic trading engine, enabling type hints and static analysis in Python. Current version 17685 (based on a build number; no standard semver). Released frequently as Lean evolves.
pip install quantconnect-stubsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic QuantConnect algorithm using stubs for type hints.
Pin to a specific version and test after upgrade: pip install quantconnect-stubs==17685
Validate against official QuantConnect documentation for APIs used.
Use the new import path: from Algorithm import QCAlgorithm