Skip to main content

No project description provided

Project description

Hawk Backtester

A fast portfolio backtesting engine written in Rust with Python bindings.

map: < portfolio_weights, model_state, R_f > --> < log_portfolio_raturns >

Assumes Execution on the close price.

Installation

pip install hawk-backtester

Usage

from hawk_backtester import run_backtest
results = run_backtest(prices_df, weights_df, risk_free_rate)

Developer Commands

cargo install maturin --locked
poetry run maturin develop
poetry run python tests/test_basic.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hawk_backtester-0.2.0.tar.gz (8.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hawk_backtester-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file hawk_backtester-0.2.0.tar.gz.

File metadata

  • Download URL: hawk_backtester-0.2.0.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.7

File hashes

Hashes for hawk_backtester-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5e553148d21f0c73aace9d830277933b433be87631fdbd9a98bef8c644973e1a
MD5 996a40fe2ddaba07a3c4d69adb18ea26
BLAKE2b-256 35eb60403afcdbc1fc1572feac92b359d03bb2ab43873ee98709c23459dd7650

See more details on using hashes here.

File details

Details for the file hawk_backtester-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hawk_backtester-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8bfa1176eae6a766c4f345ee57e2da1198101f545441949034bfa0d558ca882d
MD5 933a576182b5c6ee18f92766b8f232eb
BLAKE2b-256 e43df84c0d2e32b537fdb97fa907f0b08be823341630071a5fcb1a7739b99135

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page