From 934d83829a30b9da596e1b7762da495af76405e4 Mon Sep 17 00:00:00 2001 From: fish Date: Wed, 29 Jul 2026 10:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E4=B9=B0=E6=8C=81=E4=BB=93=E8=A1=A8?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9B=88=E4=BA=8F=E5=B9=B3=E8=A1=A1=E7=82=B9?= =?UTF-8?q?=E5=88=97=EF=BC=9B=E4=BA=A4=E6=98=93=E8=AE=B0=E5=BD=95=E6=97=A0?= =?UTF-8?q?=E5=B9=B3=E4=BB=93=E5=93=81=E7=A7=8D=E6=97=B6=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E9=9D=A2=E6=9D=BF?= 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/dual_options.html | 4 +++- ft-app/app/templates/trades.html | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ft-app/app/templates/dual_options.html b/ft-app/app/templates/dual_options.html index 990a509..5022481 100644 --- a/ft-app/app/templates/dual_options.html +++ b/ft-app/app/templates/dual_options.html @@ -87,7 +87,7 @@ {% if open_trades %}
- + {% for t in open_trades %} @@ -100,6 +100,8 @@ + +
品种合约C行权价P行权价开仓日期看涨开仓价看跌开仓价C手续费P手续费总成本操作
品种合约C行权价P行权价开仓日期看涨开仓价看跌开仓价C手续费P手续费总成本平衡(上)平衡(下)操作
{{ t.product_code }}{{ t.call_open_fee or 0 }} {{ t.put_open_fee or 0 }} {{ "%.0f"|format(t.total_cost) }}{{ "%.1f"|format(t.breakeven_upper) }}{{ "%.1f"|format(t.breakeven_lower) }} diff --git a/ft-app/app/templates/trades.html b/ft-app/app/templates/trades.html index d14be3e..0878034 100644 --- a/ft-app/app/templates/trades.html +++ b/ft-app/app/templates/trades.html @@ -295,6 +295,7 @@ {% set ns.close_fee = ns.close_fee + (t.close_fee or 0) %} {% endfor %} {% set net = ns.gross - ns.open_fee - ns.close_fee %} +{% if summary_trades %}
平仓盈亏 {% if ns.gross > 0 %}+{% endif %}{{ '%.2f'|format(ns.gross) }} | @@ -306,6 +307,7 @@ | 收益 {% if net > 0 %}+{% endif %}{{ '%.2f'|format(net) }}
+{% endif %} {% else %}
暂无已平仓记录
{% endif %}