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.5.tar.gz
(35.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.5.tar.gz.
File metadata
- Download URL: hawk_backtester-0.2.5.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18cca52bf815ba4c547a004b8732f5e7d314aa17fc020ae8e1beea6b6d6582c9
|
|
| MD5 |
b2c3e65187acf3587c6ef402bdceea72
|
|
| BLAKE2b-256 |
04bf0d80c6920f1e595d759895d678e71551aad9bc624245782357b682f3effa
|
File details
Details for the file hawk_backtester-0.2.5-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: hawk_backtester-0.2.5-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b081443a28447e24452c99e60cf1560b260248f5df6316d2f0fda0000b806c2f
|
|
| MD5 |
25664b9c4d0cbe5ef63a50518452ad40
|
|
| BLAKE2b-256 |
ec0a8a674ed767052f65c798dde23f95d3a44ccbadb2f7d7ddc569140733e2ad
|