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.3.tar.gz (34.5 kB 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.3-cp311-cp311-manylinux_2_34_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: hawk_backtester-0.2.3.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for hawk_backtester-0.2.3.tar.gz
Algorithm Hash digest
SHA256 3b6302d6080e9b650bf9394f4430110b43552c55b466148a1dd9fb618a72d6ee
MD5 189ddd3a955ebdd0ba6c23857291c9b2
BLAKE2b-256 3e30de2297efa0edb2d424ce029e2bc2dd96e245685cce01e4b4b632b87585fb

See more details on using hashes here.

File details

Details for the file hawk_backtester-0.2.3-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hawk_backtester-0.2.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d6d9cd3278eeb1fc42d9334b21b231258008a7d1530c1b5bab5f776f3af1278b
MD5 4d583127772517ca569b5402c4309bd7
BLAKE2b-256 fb372a8bc5d67e0def37cdf11ffdc8339f9b6f6a00913e60e4cf1c21ae49fe2e

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