Skip to main content

pybacktestchain

Tool for creating, analyzing, and comparing backtesting strategies for financial portfolios. Stores backtest results securely on a blockchain.

Features

  • Backtest Multiple Strategies: Includes Momentum, Mean Reversion, Equal Weight, and First Two Moments.
  • Customizable Settings: Adjust rebalancing frequencies (daily, weekly, monthly) and define custom universes of assets.
  • Performance Metrics: Evaluate portfolios with metrics like Annualized Returns, Volatility, Sharpe Ratio, and Max Drawdown.
  • User-Friendly CLI: Easily execute backtests through the command-line interface.
  • Extensible Framework: Add new strategies, metrics, or features with minimal effort.
  • Secure Blockchain Storage: Store and verify your backtests using blockchain technology.

Installation

$ pip install pybacktestchain

Usage

  • Run backtest via CLI
  • Add your custom strategy; extend the framework by:
    1. Creating a new class inheriting from {Information}.
    2. Implementing the {compute_portfolio} and {compute_information} methods.
    3. Registering your strategy in the CLI's {strategy_map}.

Know Issues

  • While the framework supports multiple strategies (e.g., Momentum, Mean Reversion), not all strategies produced valid backtest results.
  • Data inconsistencies or edge cases in the portfolio allocation logic may be the reason behind.
  • Future improvements could address these by debugging specific strategy implementation.

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

pybacktestchain was created by Juan F. Imbet. It is licensed under the terms of the MIT license.

Credits

pybacktestchain was created with cookiecutter and the py-pkgs-cookiecutter template.

Metadata

Release files for projectm2-hermine-delamaire 0.7.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 projectm2-hermine-delamaire 0.7.3
File Size Uploaded Provenance Actions
projectm2_hermine_delamaire-0.7.3.tar.gz 11.9 kB Without provenance Details for projectm2_hermine_delamaire-0.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for projectm2-hermine-delamaire 0.7.3
File Interpreter ABI Platform Actions
projectm2_hermine_delamaire-0.7.3-py3-none-any.whl Python 3 none any Details for projectm2_hermine_delamaire-0.7.3-py3-none-any.whl

Total release size: 24.9 kB

Release files / projectm2_hermine_delamaire-0.7.3.tar.gz

Download URL projectm2_hermine_delamaire-0.7.3.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2d98e00c9253710ed805689e049bb4599bb4845b12dcf43f316822fa954e2903
BLAKE2b-256 checksum
How to use checksums
49e1e066e9b9643b002a116943461106e969c705dbe1d7d45745dc5721fd2770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.11.10 Darwin/24.2.0

Release files / projectm2_hermine_delamaire-0.7.3-py3-none-any.whl

Download URL projectm2_hermine_delamaire-0.7.3-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cad2e5f12432706c356f15c9b925d21d82399c21e6c5d138469e34524357c8d
BLAKE2b-256 checksum
How to use checksums
1dbdf816c87686d6d51e045e049f585a5af0a21d9213b4ecc75901624763be96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.11.10 Darwin/24.2.0

Security for projectm2-hermine-delamaire 0.7.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.7.3 This release

2 release files No provenance

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