Skip to main content

pybacktestchain

Store your backtests in a Blockchain

Installation

$ pip install pybacktestchain

Usage

from pybacktestchain.data_module import FirstTwoMoments
from pybacktestchain.broker import Backtest, StopLoss
from pybacktestchain.blockchain import load_blockchain
from datetime import datetime

# Set verbosity for logging
verbose = False  # Set to True to enable logging, or False to suppress it

backtest = Backtest(
    initial_date=datetime(2019, 1, 1),
    final_date=datetime(2020, 1, 1),
    information_class=FirstTwoMoments,
    risk_model=StopLoss,
    name_blockchain='backtest',
    verbose=verbose
)

backtest.run_backtest()

block_chain = load_blockchain('backtest')
print(str(block_chain))
# check if the blockchain is valid
print(block_chain.is_valid())

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 as part of a project for the course Python Programming for Finance at Paris Dauphine University - PSL.

. 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 pybacktestchain 0.2.1

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

Source distribution (sdist)

Source distribution for pybacktestchain 0.2.1
File Size Uploaded Provenance Actions
pybacktestchain-0.2.1.tar.gz 9.4 kB Without provenance Details for pybacktestchain-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 19.7 kB

Release files / pybacktestchain-0.2.1.tar.gz

Download URL pybacktestchain-0.2.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ee94f349a95926b3f26138a2674cb00c2d61311265c64206324753cac80132ed
BLAKE2b-256 checksum
How to use checksums
a4bd8148ae654ae4618d785ad88389129afdbd4ad4179b0c7dddf4b679deea2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Windows/10

Release files / pybacktestchain-0.2.1-py3-none-any.whl

Download URL pybacktestchain-0.2.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc0af615dc059c67b87250687648431799de77dc1d4cc6d753b55063c4fc1aa7
BLAKE2b-256 checksum
How to use checksums
77e5fab0204dde02b26c64125ca0452683d2d8dcd038e365c2d2fa471a67a819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Windows/10

Security for pybacktestchain 0.2.1

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.

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