From 41c149a6ee1260e61c008689a7a34a1f07db04ad Mon Sep 17 00:00:00 2001 From: fish Date: Tue, 28 Jul 2026 09:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B9=B3=E4=BB=93=E7=9B=88?= =?UTF-8?q?=E4=BA=8F=E5=88=97=E4=BD=8D=E7=BD=AE=E8=87=B3=E5=B9=B3=E4=BB=93?= =?UTF-8?q?=E4=BB=B7=E4=B8=8E=E5=BC=80=E4=BB=93=E8=B4=B9=E4=B9=8B=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- ft-app/app/templates/trades.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ft-app/app/templates/trades.html b/ft-app/app/templates/trades.html index 8cef70e..fb59365 100644 --- a/ft-app/app/templates/trades.html +++ b/ft-app/app/templates/trades.html @@ -197,7 +197,7 @@
{{ pc }} · {{ trades|length }} 笔
{% endif %} - + {% for t in trades %} @@ -213,8 +213,6 @@ - - + +
合约方向开仓平仓持仓开仓价平仓价开仓费平仓费平仓盈亏盈亏操作
合约方向开仓平仓持仓开仓价平仓价平仓盈亏开仓费平仓费盈亏操作
{{ t.contract_code.replace(t.product_code, '', 1) }}{{ (t.close_date - t.open_date).days }}天 {{ t.open_price }} {{ t.close_price }}{{ t.open_fee or 0 }}{{ t.close_fee or 0 }} {% if t.direction == 'short' %} {% set gross_pnl = (t.open_price - t.close_price) * t.point_value %} @@ -225,6 +223,8 @@ {% if gross_pnl > 0 %}+{% endif %}{{ '%.2f'|format(gross_pnl) }} {{ t.open_fee or 0 }}{{ t.close_fee or 0 }} {% set p = t.pnl %} {% if p is not none %}