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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55530619b293dedc2bf4cd6d587c128a792a892ee34955281becaf32fc9ea058
|
|
| MD5 |
b1b3231d02b897d10621faee9d1840e3
|
|
| BLAKE2b-256 |
d4788afd6f4e1d7ee4e3e0482bf44bfdec937d4b535333f544ff7515057f32b9
|
File details
Details for the file hawk_backtester-0.2.4-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: hawk_backtester-0.2.4-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8fec700b645d8e6bff95c9aab7aad454b3bbb7ecf17aec4e039db245bf20048
|
|
| MD5 |
21d39a86fb168c37983135c2ab24b22a
|
|
| BLAKE2b-256 |
47267ef0924d4e61d71d7d52f8ee57bc184c7b3edd5d6326d6b651e08336540e
|