declare function dumpSignal(signalId: string | number, history: MessageModel[], signal: ISignalDto, outputDir?: string): Promise<void>;
Dumps signal data and LLM conversation history to markdown files. Used by AI-powered strategies to save debug logs for analysis.
Creates a directory structure with:
Skips if directory already exists to avoid overwriting previous results.
| Parameter | Description |
|---|---|
signalId |
Unique identifier for the result (used as directory name, e.g., UUID) |
history |
Array of message models from LLM conversation |
signal |
Signal DTO returned by LLM (position, priceOpen, TP, SL, etc.) |
outputDir |
Output directory path (default: "./dump/strategy") |