quantconnect-stubs
Type stubs for QuantConnect's Lean
What it is and what it does
This package provides type stubs for QuantConnect's Lean algorithmic trading engine and related .NET library components. Type stubs are metadata files that tell Python IDEs and type checkers what types and signatures exist in a library, without including the actual implementation. They enable autocomplete, parameter hints, and type checking in your editor when writing trading strategies.
The package is designed for developers writing Python strategies on the QuantConnect platform. It depends on pandas and matplotlib as runtime dependencies. The stubs are actively maintained and have no known vulnerabilities, making them a stable choice for local development workflows.
Use it for:
- Enable IDE autocomplete when writing QuantConnect trading strategies locally before uploading to the cloud
- Catch type errors and API misuse in Python trading algorithms before runtime execution
- Provide parameter hints and documentation popups for Lean API methods in your editor
- Support local development with type checking consistency across different environments
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for QuantConnect's Lean algorithmic trading engine, enabling IDE autocomplete and type checking for Python strategies.
Yes, if you develop trading strategies on QuantConnect. The stubs are actively maintained with no known vulnerabilities, and install friction is low. Runtime dependencies (pandas, matplotlib) are standard libraries you likely already have.
Install
quantconnect-stubs on PyPI
pip
pip install quantconnect-stubsuv
uv add quantconnect-stubspoetry
poetry add quantconnect-stubsInstalling quantconnect-stubs
Before you install
Low friction install with active maintenance. Last commit on 2026-05-12 and latest release on 2026-08-14 indicate ongoing development.
License in practice
Licensed under Apache Software License (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install quantconnect-stubs
import quantconnect_stubs
Verify before relying
- Whether stubs cover the full Lean API surface or only common members as documented
- Compatibility with specific versions of QuantConnect's cloud environment
- Whether type stubs work with all major Python IDEs and type checkers
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pandas, matplotlib |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 161,019/month — #10,647 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: quantconnect_stubs-18003-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
google-api-python-client-stubsProvides type stubs for…
permissive · top 5,000 on PyPI
ob-metaflow-stubsProvides type hints and stub files for the…
permissive · top 15,000 on PyPI
backtestingBacktesting.py lets you define and test trading…
agpl · top 15,000 on PyPI
nautilus_traderNautilusTrader is a Rust-native event-driven…
copyleft · top 15,000 on PyPI
gs-quantGS Quant is a Python toolkit for quantitative…
permissive · top 15,000 on PyPI
backtraderBacktrader is a Python backtesting and live…
copyleft · top 15,000 on PyPI
lumibotLumibot is a Python framework for building,…
permissive · top 15,000 on PyPI
googleapis-common-protos-stubsProvides type stubs for…
permissive · top 15,000 on PyPI
quantstatsQuantStats computes portfolio performance…
permissive · top 15,000 on PyPI
asyncpg-stubsProvides type stubs for asyncpg to enable…
permissive · top 5,000 on PyPI