feat(crypto-tail): 加密价差策略收益曲线与交互优化

- 后端: 收益曲线 API (pnl-curve)、CryptoTailStrategyService.getPnlCurve、gt 扩展导入
- 前端: CryptoTailPnlCurveModal 弹窗,统计卡片+时间筛选+ECharts 累计收益图
- 策略列表: 桌面/移动端「收益曲线」入口,图标改为蓝色(#1890ff)
- 切换时间范围保留旧数据避免图表容器卸载导致空白
- 今日/7天/30天用折线、全部用平滑曲线
- 多语言: viewPnlCurve、pnlCurve.* (zh-CN/zh-TW/en)

Made-with: Cursor
This commit is contained in:
WrBug
2026-03-02 17:39:23 +08:00
parent 4ebfacfc21
commit 46e10ebdd8
11 changed files with 568 additions and 74 deletions
+17
View File
@@ -1504,7 +1504,9 @@
"strategyName": "Strategy Name",
"account": "Account",
"market": "Market",
"marketAndTime": "Market / Time",
"timeWindow": "Time Window",
"config": "Config",
"priceRange": "Price Range",
"amountMode": "Amount Mode",
"ratio": "Ratio",
@@ -1517,6 +1519,7 @@
"disable": "Disable",
"delete": "Delete",
"viewTriggers": "Orders",
"viewPnlCurve": "PnL Curve",
"deleteConfirm": "Delete this strategy?",
"fetchFailed": "Failed to fetch list",
"configGuide": "Configuration Guide"
@@ -1584,6 +1587,20 @@
"emptySuccess": "No success records",
"emptyFail": "No failed records",
"totalCount": "{count} record(s)"
},
"pnlCurve": {
"title": "PnL Curve",
"totalPnl": "Total PnL",
"settledCount": "Settled",
"winRate": "Win Rate",
"maxDrawdown": "Max Drawdown",
"timeRange": "Time Range",
"today": "Today",
"last7Days": "Last 7 Days",
"last30Days": "Last 30 Days",
"all": "All",
"customRange": "Custom",
"empty": "No settled orders yet, cannot show PnL curve"
}
},
"cryptoTailMonitor": {