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 %}