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.4.tar.gz (34.4 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.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for hawk_backtester-0.2.4.tar.gz
Algorithm Hash digest
SHA256 55530619b293dedc2bf4cd6d587c128a792a892ee34955281becaf32fc9ea058
MD5 b1b3231d02b897d10621faee9d1840e3
BLAKE2b-256 d4788afd6f4e1d7ee4e3e0482bf44bfdec937d4b535333f544ff7515057f32b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hawk_backtester-0.2.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e8fec700b645d8e6bff95c9aab7aad454b3bbb7ecf17aec4e039db245bf20048
MD5 21d39a86fb168c37983135c2ab24b22a
BLAKE2b-256 47267ef0924d4e61d71d7d52f8ee57bc184c7b3edd5d6326d6b651e08336540e

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