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 %}
| 品种 | 合约 | C行权价 | P行权价 | 开仓日期 | 看涨开仓价 | 看跌开仓价 | C手续费 | P手续费 | 总成本 | 操作 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 品种 | 合约 | C行权价 | P行权价 | 开仓日期 | 看涨开仓价 | 看跌开仓价 | C手续费 | P手续费 | 总成本 | 平衡(上) | 平衡(下) | 操作 |
| {{ t.product_code }} | @@ -100,6 +100,8 @@{{ 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 %}
|