Performance#

The performance module provides tools for evaluating and summarizing portfolio and strategy performance. It exposes a clean public API for calculating returns, risk metrics, and visualizing performance, while keeping internal computation details hidden.

generate_returns_from_weights

Generate portfolio, benchmark, and active returns from given portfolio weights.

generate_summary_table

Generate a summary statistics table for portfolio returns.

generate_returns_chart

Plot cumulative portfolio returns over time.