Trading performance report generator with Plotly charts
Project description
jason-utils
Trading performance report generator with Plotly interactive charts.
Installation
pip install jason-utils
Usage
import pandas as pd
from jason_utils import generate_performance_html
trades = pd.DataFrame({
"entry_date": ["2024-01-05", "2024-01-10", "2024-02-03"],
"profit_pct": [0.02, -0.01, 0.03],
})
summary = {
"total_trades": 3,
"win_rate_pct": 66.67,
"total_return_pct": 4.0,
"annual_return_pct": 48.0,
"max_drawdown_pct": -1.0,
}
generate_performance_html(trades, summary, output_path="report.html")
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
jlab_utils-0.1.0.tar.gz
(4.1 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 jlab_utils-0.1.0.tar.gz.
File metadata
- Download URL: jlab_utils-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ee11b0586cf0253eac487272a48f90fa50bb8e5f225626670abae99e4fa7d23
|
|
| MD5 |
d45f2916cbd02c5b55104cdceeff7f61
|
|
| BLAKE2b-256 |
f1dbe7555747da9fdae81a5e9206321a4c26f9bcd77ba629fad523a793ee0b78
|
File details
Details for the file jlab_utils-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jlab_utils-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7123ac62811ae04513988586641dcfd044f5447899a5fe70645c44c37c20d6b2
|
|
| MD5 |
77ea005a2a12435164a32177bbfa1304
|
|
| BLAKE2b-256 |
553ee70aad5619e48cb25069f8ce32a2a41bdce7aa9d655d7423b021983fe660
|