diff --git a/ft-app/app/templates/options.html b/ft-app/app/templates/options.html
index f61ca83..1f8efad 100644
--- a/ft-app/app/templates/options.html
+++ b/ft-app/app/templates/options.html
@@ -165,7 +165,7 @@
已平仓 · {{ closed_trades|length }} 笔
- | 品种 | 合约 | 类型 | 买卖 | 行权价 | 开仓 | 平仓 | 权利金 | 平仓价 | 开仓费 | 平仓费 | 盈亏 | 操作 |
+ | 品种 | 合约 | 类型 | 买卖 | 行权价 | 开仓 | 平仓 | 持仓 | 权利金 | 平仓价 | 开仓费 | 平仓费 | 盈亏 | 操作 |
{% for t in closed_trades %}
| {{ t.product_code }} |
@@ -187,6 +187,7 @@
{{ t.strike_price }} |
{{ t.open_date }} {{ weekdays[t.open_date.weekday()] }} |
{{ t.close_date }} {{ weekdays[t.close_date.weekday()] }} |
+ {{ (t.close_date - t.open_date).days }}天 |
{{ t.open_price }} |
{{ t.close_price }} |
{{ t.open_fee or 0 }} |
diff --git a/ft-app/app/templates/trades.html b/ft-app/app/templates/trades.html
index b411afd..509531f 100644
--- a/ft-app/app/templates/trades.html
+++ b/ft-app/app/templates/trades.html
@@ -145,7 +145,7 @@
已平仓 · {{ closed_trades|length }} 笔
- | 品种 | 合约 | 方向 | 开仓 | 平仓 | 开仓价 | 平仓价 | 开仓费 | 平仓费 | 盈亏 | 操作 |
+ | 品种 | 合约 | 方向 | 开仓 | 平仓 | 持仓 | 开仓价 | 平仓价 | 开仓费 | 平仓费 | 盈亏 | 操作 |
{% for t in closed_trades %}
| {{ t.product_code }} |
@@ -159,6 +159,7 @@
{{ t.open_date }} {{ weekdays[t.open_date.weekday()] }} |
{{ t.close_date }} {{ weekdays[t.close_date.weekday()] }} |
+ {{ (t.close_date - t.open_date).days }}天 |
{{ t.open_price }} |
{{ t.close_price }} |
{{ t.open_fee or 0 }} |