Metadata-Version: 2.4
Name: jlab-utils
Version: 0.1.0
Summary: Trading performance report generator with Plotly charts
Author: Jason
License-Expression: MIT
Project-URL: Homepage, https://github.com/shihyu/jason-utils
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: pandas>=1.5
Requires-Dist: numpy>=1.21
Requires-Dist: plotly>=5.0

# jason-utils

Trading performance report generator with Plotly interactive charts.

## Installation

```bash
pip install jason-utils
```

## Usage

```python
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")
```
