feat(crypto-tail): 触发记录与结算优化、前端收益与价格展示
后端: - 结算轮询仅处理下单成功订单(status=success 且 orderId 非空) - 实体通过 copy() 更新,不再直接改字段;结算时用订单 fill 回写 triggerPrice、amountUsdc - Trigger 实体结算相关字段改为 val,统一 copy+save 更新 前端: - 触发记录: 去掉市场列,保留触发价格(轮询后为实际成交价);每条收益列、涨跌色 - 策略列表: 总收益与胜率、涨跌色;价格区间格式 0.5 ~ 1 - 类型与 i18n: totalRealizedPnl/winRate/realizedPnl 等 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1414,6 +1414,8 @@
|
||||
"ratio": "Ratio",
|
||||
"fixed": "Fixed",
|
||||
"recentTrigger": "Last Trigger",
|
||||
"totalRealizedPnl": "Total PnL",
|
||||
"winRate": "Win Rate",
|
||||
"actions": "Actions",
|
||||
"edit": "Edit",
|
||||
"enable": "Enable",
|
||||
@@ -1463,7 +1465,9 @@
|
||||
"orderId": "Order ID",
|
||||
"status": "Status",
|
||||
"success": "Success",
|
||||
"fail": "Fail"
|
||||
"fail": "Fail",
|
||||
"realizedPnl": "PnL",
|
||||
"resolved": "Settled"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1413,6 +1413,8 @@
|
||||
"ratio": "比例",
|
||||
"fixed": "固定金额",
|
||||
"recentTrigger": "最近触发",
|
||||
"totalRealizedPnl": "总收益",
|
||||
"winRate": "胜率",
|
||||
"actions": "操作",
|
||||
"edit": "编辑",
|
||||
"enable": "启用",
|
||||
@@ -1462,7 +1464,9 @@
|
||||
"orderId": "订单 ID",
|
||||
"status": "状态",
|
||||
"success": "成功",
|
||||
"fail": "失败"
|
||||
"fail": "失败",
|
||||
"realizedPnl": "收益",
|
||||
"resolved": "已结算"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1414,6 +1414,8 @@
|
||||
"ratio": "比例",
|
||||
"fixed": "固定金額",
|
||||
"recentTrigger": "最近觸發",
|
||||
"totalRealizedPnl": "總收益",
|
||||
"winRate": "勝率",
|
||||
"actions": "操作",
|
||||
"edit": "編輯",
|
||||
"enable": "啟用",
|
||||
@@ -1463,7 +1465,9 @@
|
||||
"orderId": "訂單 ID",
|
||||
"status": "狀態",
|
||||
"success": "成功",
|
||||
"fail": "失敗"
|
||||
"fail": "失敗",
|
||||
"realizedPnl": "收益",
|
||||
"resolved": "已結算"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user