Skip to main content

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


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.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jlab_utils-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file jlab_utils-0.1.1.tar.gz.

File metadata

  • Download URL: jlab_utils-0.1.1.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

Hashes for jlab_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 afd8cd68db24c19135afa98122a8f6f246f50d0e25c47db61e7c583dac5d4f0d
MD5 6e0404b874057636f3b62c6ef6a92ad8
BLAKE2b-256 c30689b645357e28a016821e437109f96e212ae615a95612156124ab6774ba2e

See more details on using hashes here.

File details

Details for the file jlab_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: jlab_utils-0.1.1-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

Hashes for jlab_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe62b97402413bda054223f7744d3fcb797151da4ec1755c9923f727ff827344
MD5 c9a5e0b7b19a4507865f7d799654751a
BLAKE2b-256 4331d706af605ddc3b3ab330fd04b1e46242b97c611dd1bb8cbef149f0b66b21

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