diff --git a/app/trades/page.tsx b/app/trades/page.tsx index 1d1f35c..8bc49f0 100644 --- a/app/trades/page.tsx +++ b/app/trades/page.tsx @@ -30,6 +30,7 @@ const statusVariant: Record = { export default async function TradesPage() { const [rows, stats] = await Promise.all([getTrades(), getStats()]); const statsMap = Object.fromEntries(stats.map((s: any[]) => [s[0], s[1]])); + const totalBetAmount = rows.reduce((sum: number, r: any[]) => sum + (Number(r[4]) || 0), 0); const totalPnl = rows.reduce((sum: number, r: any[]) => sum + (r[7] || 0), 0); const expectedTotalProfit = rows .filter((r: any[]) => r[6] === "open") @@ -42,7 +43,13 @@ export default async function TradesPage() {

信号验证 — 模拟下注记录(每注 $1)

-
+
+ + +
总下注金额
+
${totalBetAmount.toFixed(2)}
+
+
总注单