Metadata-Version: 2.4
Name: tradewind
Version: 0.0.4
Summary: An Apache 2.0 backtesting engine compatible with the backtrader API, built for depth and speed.
Author: Papers With Backtest
License: Apache-2.0
Project-URL: Homepage, https://paperswithbacktest.com
Project-URL: Source, https://github.com/paperswithbacktest/tradewind
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: numpy>=1.24
Requires-Dist: pandas>=2.0
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: ruff>=0.5; extra == "dev"
Requires-Dist: mypy>=1.10; extra == "dev"
Requires-Dist: pyarrow>=14; extra == "dev"
Requires-Dist: matplotlib>=3.7; extra == "dev"
Requires-Dist: tqdm>=4; extra == "dev"
Provides-Extra: ibkr
Requires-Dist: ib_async>=2.0; extra == "ibkr"
Provides-Extra: plot
Requires-Dist: matplotlib>=3.7; extra == "plot"
Provides-Extra: tearsheets
Requires-Dist: matplotlib>=3.7; extra == "tearsheets"
Requires-Dist: pyfolio-reloaded<0.11,>=0.10.2; python_version >= "3.11" and extra == "tearsheets"
Requires-Dist: alphalens-reloaded<0.6,>=0.5.1; python_version >= "3.11" and extra == "tearsheets"
Requires-Dist: empyrical-reloaded<0.8,>=0.7.3; python_version >= "3.11" and extra == "tearsheets"
Dynamic: license-file

# Tradewind

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

```bash
pip install tradewind
```

Documentation: [docs/](docs/README.md) — [getting started](docs/getting-started.md), [how a backtest runs](docs/concepts.md), [migrating from backtrader](docs/migrating-from-backtrader.md), [coming from QuantConnect Lean](docs/coming-from-lean.md). Design documents: [spec/](spec/README.md).

Optional extras: `pip install 'tradewind[plot]'` for the native plots (matplotlib:
`strategy.analyzers.performance.plot()`, see [docs/plots.md](docs/plots.md));
`pip install 'tradewind[tearsheets]'` for Quantopian's tear sheets through
[pyfolio-reloaded](https://github.com/stefan-jansen/pyfolio-reloaded),
[alphalens-reloaded](https://github.com/stefan-jansen/alphalens-reloaded) and
[empyrical-reloaded](https://github.com/stefan-jansen/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](docs/images/momentum_sectors.png)

*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](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](https://paperswithbacktest.com).
