HeatUtils

Utility class for portfolio heatmap operations.

Provides simplified access to heatMarkdownService with logging. Automatically aggregates statistics across all symbols per strategy. Exported as singleton instance for convenient usage.

constructor();
getData: (context: { strategyName: string; exchangeName: string; frameName: string; }, backtest?: boolean) => Promise<HeatmapStatisticsModel>

Gets aggregated portfolio heatmap statistics for a strategy.

Returns per-symbol breakdown and portfolio-wide metrics. Data is automatically collected from all closed signals for the strategy.

getReport: (context: { strategyName: string; exchangeName: string; frameName: string; }, backtest?: boolean, columns?: Columns$3[]) => Promise<string>

Generates markdown report with portfolio heatmap table for a strategy.

Table includes: Symbol, Total PNL, Sharpe Ratio, Max Drawdown, Trades. Symbols are sorted by Total PNL descending.

dump: (context: { strategyName: string; exchangeName: string; frameName: string; }, backtest?: boolean, path?: string, columns?: Columns$3[]) => Promise<void>

Saves heatmap report to disk for a strategy.

Creates directory if it doesn't exist. Default filename: {strategyName}.md