"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
Merge remote-tracking branch 'origin/main' into feat/tearsheet-monthly-returns
shadowinlifef07e0c3a690d
diff --cc frontend/src/i18n/locales/ar.jsonindex 6216837f5,fc848e30e..36eef28ca--- a/frontend/src/i18n/locales/ar.json+++ b/frontend/src/i18n/locales/ar.json@@@ -615,21 -615,7 +615,22 @@@"copyCode": "نسخ","codeCopied": "تم نسخ الكود","codeLines": "{{count}} سطر",+ "tearsheet": "تقرير الأداء",+ "monthlyReturns": "العوائد الشهرية",+ "annualReturns": "العوائد السنوية",+ "topDrawdowns": "أبرز التراجعات",+ "tearsheetYear": "السنة",+ "noTearsheetData": "بيانات حقوق الملكية غير كافية لإعداد تقرير الأداء.",+ "ddRank": "#",+ "ddDepth": "العمق",+ "ddPeak": "القمة",+ "ddTrough": "القاع",+ "ddRecovery": "التعافي",+ "ddPeakToTrough": "القمة إلى القاع",+ "ddTroughToRecovery": "القاع إلى التعافي",+ "ddNotRecovered": "لم يتعافَ",- "ddDays": "{{count}} يوم"++ "ddDays": "{{count}} يوم",+ "dashboard": "لوحة البحث"},"compare": {"title": "مقارنة الاستراتيجيات",diff --cc frontend/src/i18n/locales/en.jsonindex 242abdc18,50cd27427..3ebad8687--- a/frontend/src/i18n/locales/en.json+++ b/frontend/src/i18n/locales/en.json@@@ -620,21 -620,7 +620,22 @@@"copyCode": "Copy","codeCopied": "Code copied","codeLines": "{{count}} lines",+ "tearsheet": "Tearsheet",+ "monthlyReturns": "Monthly Returns",+ "annualReturns": "Annual Returns",+ "topDrawdowns": "Top Drawdowns",+ "tearsheetYear": "Year",+ "noTearsheetData": "Not enough equity data for a tearsheet.",+ "ddRank": "#",+ "ddDepth": "Depth",+ "ddPeak": "Peak",+ "ddTrough": "Trough",+ "ddRecovery": "Recovery",+ "ddPeakToTrough": "Peak→Trough",+ "ddTroughToRecovery": "Trough→Rec.",+ "ddNotRecovered": "Not recovered",- "ddDays": "{{count}} d"++ "ddDays": "{{count}} d",+ "dashboard": "Research dashboard"},"compare": {"title": "Strategy Comparison",diff --cc frontend/src/i18n/locales/es.jsonindex 99e05d993,7a66afb36..2997376b8--- a/frontend/src/i18n/locales/es.json+++ b/frontend/src/i18n/locales/es.json@@@ -620,21 -620,7 +620,22 @@@"copyCode": "Copiar","codeCopied": "Código copiado","codeLines": "{{count}} líneas",+ "tearsheet": "Informe de rendimiento",+ "monthlyReturns": "Rentabilidad mensual",+ "annualReturns": "Rentabilidad anual",+ "topDrawdowns": "Principales drawdowns",+ "tearsheetYear": "Año",+ "noTearsheetData": "No hay datos de equity suficientes para generar el informe de rendimiento.",+ "ddRank": "#",+ "ddDepth": "Profundidad",+ "ddPeak": "Pico",+ "ddTrough": "Valle",+ "ddRecovery": "Recuperación",+ "ddPeakToTrough": "Pico→Valle",+ "ddTroughToRecovery": "Valle→Rec.",+ "ddNotRecovered": "No recuperado",- "ddDays": "{{count}} d"++ "ddDays": "{{count}} d",+ "dashboard": "Panel de investigación"},"compare": {"title": "Comparación de estrategias",diff --cc frontend/src/i18n/locales/ja.jsonindex 067aa44f1,410a3415a..836f2ad75--- a/frontend/src/i18n/locales/ja.json+++ b/frontend/src/i18n/locales/ja.json@@@ -615,21 -615,7 +615,22 @@@"copyCode": "コピー","codeCopied": "コードをコピーしました","codeLines": "{{count}} 行",+ "tearsheet": "パフォーマンスレポート",+ "monthlyReturns": "月次リターン",+ "annualReturns": "年次リターン",+ "topDrawdowns": "主要ドローダウン",+ "tearsheetYear": "年間",+ "noTearsheetData": "パフォーマンスレポートを作成するための資産データが不足しています。",+ "ddRank": "#",+ "ddDepth": "下落幅",+ "ddPeak": "高値",+ "ddTrough": "安値",+ "ddRecovery": "回復",+ "ddPeakToTrough": "高値→安値",+ "ddTroughToRecovery": "安値→回復",+ "ddNotRecovered": "未回復",- "ddDays": "{{count}}日"++ "ddDays": "{{count}}日",+ "dashboard": "リサーチダッシュボード"},"compare": {"title": "戦略比較",diff --cc frontend/src/i18n/locales/ko.jsonindex 3f4ccaec1,a5c7ae860..c85e6c7ff--- a/frontend/src/i18n/locales/ko.json+++ b/frontend/src/i18n/locales/ko.json@@@ -615,21 -615,7 +615,22 @@@"copyCode": "복사","codeCopied": "코드가 복사되었습니다","codeLines": "{{count}}줄",+ "tearsheet": "성과 보고서",+ "monthlyReturns": "월별 수익률",+ "annualReturns": "연도별 수익률",+ "topDrawdowns": "주요 드로다운",+ "tearsheetYear": "연간",+ "noTearsheetData": "성과 보고서를 생성하기에 자산 데이터가 부족합니다.",+ "ddRank": "#",+ "ddDepth": "낙폭",+ "ddPeak": "고점",+ "ddTrough": "저점",+ "ddRecovery": "회복",+ "ddPeakToTrough": "고점→저점",+ "ddTroughToRecovery": "저점→회복",+ "ddNotRecovered": "미회복",- "ddDays": "{{count}}일"++ "ddDays": "{{count}}일",+ "dashboard": "리서치 대시보드"},"compare": {"title": "전략 비교",diff --cc frontend/src/i18n/locales/zh-CN.jsonindex d03ebcca9,a0cb3d13e..52d58eadd--- a/frontend/src/i18n/locales/zh-CN.json+++ b/frontend/src/i18n/locales/zh-CN.json@@@ -615,21 -615,7 +615,22 @@@"copyCode": "复制","codeCopied": "代码已复制","codeLines": "{{count}} 行",+ "tearsheet": "绩效报告",+ "monthlyReturns": "月度收益",+ "annualReturns": "年度收益",+ "topDrawdowns": "主要回撤",+ "tearsheetYear": "全年",+ "noTearsheetData": "净值数据不足,无法生成绩效报告。",+ "ddRank": "#",+ "ddDepth": "回撤深度",+ "ddPeak": "高点",+ "ddTrough": "低点",+ "ddRecovery": "恢复",+ "ddPeakToTrough": "高点→低点",+ "ddTroughToRecovery": "低点→恢复",+ "ddNotRecovered": "未恢复",- "ddDays": "{{count}} 天"++ "ddDays": "{{count}} 天",+ "dashboard": "研究仪表盘"},"compare": {"title": "策略对比",diff --cc frontend/src/lib/api.tsindex d196dca6b,a55da3219..c4c5bd1bb--- a/frontend/src/lib/api.ts+++ b/frontend/src/lib/api.ts@@@ -612,9 -612,10 +612,11 @@@ export interface RunDataindicator_series?: Record<string, Record<string, IndicatorPoint[]>>;trade_markers?: TradeMarker[];equity_curve?: EquityPoint[];+ trade_log?: Array<Record<string, string>>;+ /** Full equity.csv rows (timestamp/equity/drawdown as strings); not capped like equity_curve. */artifacts_equity_csv?: Array<Record<string, string>>;- trade_log?: Array<Record<string, string>>;+ artifacts_metrics_csv?: Array<Record<string, string>>;+ artifacts_trades_csv?: Array<Record<string, string>>;run_logs?: Array<{ source?: string; line_number?: number; message?: string }>;}diff --cc frontend/src/pages/RunDetail.tsxindex 4da613f12,c5d7c8698..1d718f47a--- a/frontend/src/pages/RunDetail.tsx+++ b/frontend/src/pages/RunDetail.tsx@@@ -1,8 -1,8 +1,8 @@@import i18n from '@/i18n';-import { useEffect, useRef, useState } from "react";+import { useEffect, useMemo, useRef, useState } from "react";import type { ReactNode } from "react";import { useTranslation } from "react-i18next";- import { useParams, useNavigate } from "react-router";+ import { useParams, useNavigate, useSearchParams } from "react-router";import {AlertTriangle,ArrowLeft,@@@ -46,7 -37,7 +48,7 @@@ import { getStrategyReportIdentity, Strconst rehypePlugins = [rehypeHighlight];- type Tab = "chart" | "tearsheet" | "trades" | "runCard" | "code" | "validation" | "studio";-type Tab = "dashboard" | "chart" | "trades" | "runCard" | "code" | "validation" | "studio";++type Tab = "dashboard" | "chart" | "tearsheet" | "trades" | "runCard" | "code" | "validation" | "studio";type ChartPayload = Pick<RunData, "price_series" | "indicator_series" | "trade_markers">;type ChartCache = Record<string, ChartPayload>;type ChartLoadProgress = { done: number; total: number };@@@ -128,10 -121,9 +132,11 @@@ export function RunDetail()const hasValidation = !!run?.validation;const hasRunCard = !!run?.run_card;const hasStudio = !!run?.risk_xray || !!run?.rebalance_notes;+ const hasTearsheet = (run?.artifacts_equity_csv?.length ?? 0) > 0 || (run?.equity_curve?.length ?? 0) > 0;const TABS: { id: Tab; label: string; icon: typeof BarChart3; hidden?: boolean }[] = [+ { id: "dashboard", label: i18n.t("runDetail.dashboard"), icon: LayoutDashboard },{ id: "chart", label: i18n.t("runDetail.chart"), icon: BarChart3 },+ { id: "tearsheet", label: i18n.t("runDetail.tearsheet"), icon: CalendarRange, hidden: !hasTearsheet },{ id: "trades", label: i18n.t("runDetail.trades"), icon: List },{ id: "studio", label: i18n.t("runDetail.studio"), icon: Gauge, hidden: !hasStudio },{ id: "validation", label: i18n.t("runDetail.validation"), icon: ShieldCheck, hidden: !hasValidation },