Performance class provides static methods for performance metrics analysis.
Features:
constructor();
static getData(symbol: string, strategyName: string): Promise<PerformanceStatistics>;
Gets aggregated performance statistics for a symbol-strategy pair.
Returns detailed metrics grouped by operation type:
static getReport(symbol: string, strategyName: string): Promise<string>;
Generates markdown report with performance analysis.
Report includes:
static dump(strategyName: string, path?: string): Promise<void>;
Saves performance report to disk.
Creates directory if it doesn't exist. Default path: ./dump/performance/{strategyName}.md