Skip to main content

Tradewind

An Apache 2.0 backtesting engine compatible with the backtrader API, built for depth and speed.

pip install tradewind

Documentation: docs/ — getting started, how a backtest runs, migrating from backtrader, coming from QuantConnect Lean. Design documents: spec/.

Optional extras: pip install 'tradewind[plot]' for the native plots (matplotlib: strategy.analyzers.performance.plot(), see docs/plots.md); pip install 'tradewind[tearsheets]' for Quantopian's tear sheets through pyfolio-reloaded, alphalens-reloaded and empyrical-reloaded (Apache 2.0, not distributed with Tradewind, see NOTICE; Python 3.11 or later).

Sector momentum on Papers With Backtest data: portfolio value against SPY, drawdown, exposure and turnover, monthly returns

Sector momentum (12-1), top 3 of the 9 SPDR sector ETFs, monthly; daily bars 1999-01-04 to 2026-10-30 (first trade 2000-01-04); 5 bp commission per fill, fills at the next open; Papers With Backtest ETF prices (total return). CAGR 9.5 % against 8.6 % for SPY, Sharpe 0.61 against 0.53, max drawdown 44.0 % against 55.2 %. Code and two more examples: docs/real-data-examples.md.

Releases: a vX.Y.Z tag matching the version in pyproject.toml builds, checks and publishes the package to PyPI through trusted publishing (.github/workflows/release.yml); nothing is published by hand.

Maintained by Papers With Backtest.

Metadata

Release files for tradewind 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tradewind 0.0.3
File Size Uploaded Provenance Actions
tradewind-0.0.3.tar.gz 498.1 kB With provenance Details for tradewind-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tradewind 0.0.3
File Interpreter ABI Platform Actions
tradewind-0.0.3-py3-none-any.whl Python 3 none any Details for tradewind-0.0.3-py3-none-any.whl

Total release size: 875.6 kB

Release files / tradewind-0.0.3.tar.gz

Download URL tradewind-0.0.3.tar.gz
Size 498.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b69d3cbef25442951a3cd87b4f76b8658e5cf3081f269f2be4afad9f3e67f86e
BLAKE2b-256 checksum
How to use checksums
0b9d6267964efaca91db29d84d8a613a51dfd826e1577fc3c0bf50ef3ae5497b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / tradewind-0.0.3-py3-none-any.whl

Download URL tradewind-0.0.3-py3-none-any.whl
Size 377.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
421ce80c31ddf3624a86b0c9a4bf28c56f828d579fd32bba005a63e2ef04b0d0
BLAKE2b-256 checksum
How to use checksums
a56b3ea70d63b0ff871678dc311e5e4c71dae90fd29b0517fa0c81879a2b80a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for tradewind 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tradewind-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page