Utility class for accessing partial profit/loss reports and statistics.
Provides static-like methods (via singleton instance) to retrieve data accumulated by PartialMarkdownService from partial profit/loss events.
Features:
Data source:
constructor();
getData: (symbol: string) => Promise<PartialStatistics>
Retrieves statistical data from accumulated partial profit/loss events.
Delegates to PartialMarkdownService.getData() which reads from ReportStorage. Returns aggregated metrics calculated from all profit and loss events.
getReport: (symbol: string) => Promise<string>
Generates markdown report with all partial profit/loss events for a symbol.
Creates formatted table containing:
Also includes summary statistics at the end.
dump: (symbol: string, path?: string) => Promise<void>
Generates and saves markdown report to file.
Creates directory if it doesn't exist. Filename format: {symbol}.md (e.g., "BTCUSDT.md")
Delegates to PartialMarkdownService.dump() which: