| name | generateReviewReport |
| description | Generate a comprehensive review report for a trade, including performance analysis, lessons learned, and recommendations. |
generateReviewReport
描述
为交易生成综合审查报告。
输入模式
interface GenerateReviewReportInput {
tradeId: string;
reviewResult: ReviewResult;
includeCharts?: boolean;
format?: 'markdown' | 'html' | 'json';
}
输出模式
interface GenerateReviewReportOutput {
reportId: string;
tradeId: string;
format: string;
content: string;
metadata: {
generatedAt: Date;
tradeDate: Date;
tradeDuration: number;
profitLoss: number;
profitLossPercent: number;
grade: string;
};
charts?: Array<{
type: string;
data: any;
caption: string;
}>;
}
错误代码
INVALID_TRADE_ID: 交易 ID 无效
INVALID_FORMAT: 输出格式不支持
REPORT_GENERATION_ERROR: 报告生成失败