skillfed

quantconnect-stubs

Type stubs for QuantConnect's Lean

quantconnect-stubs v18003 161.0K downloads/30d#10,647 on PyPI20
Permissive license Active released

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-stubs

uv

uv add quantconnect-stubs

poetry

poetry add quantconnect-stubs

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3

Tags

quantconnect type stubslean algorithm type hintsquantconnect python autocompletealgorithmic trading type checkingquantconnect ide supportpython trading strategy typesquantconnect stubs
type-stubstradingquantconnect

More Software Development packages