持仓排名多空增加增减合计行

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-26 15:06:33 +08:00
parent b421945b16
commit 6c54a8ae95
2 changed files with 17 additions and 0 deletions
+9
View File
@@ -92,6 +92,15 @@
</td>
</tr>
{% endfor %}
{% if dtype != 'volume' %}
<tr style="background:var(--th-bg);font-weight:600;">
<td></td><td style="text-align:right;">增减合计</td>
<td></td>
<td style="color:{% if pos_totals[dtype] > 0 %}var(--danger-fg){% elif pos_totals[dtype] < 0 %}var(--success-fg){% else %}var(--sub){% endif %};">
{% if pos_totals[dtype] > 0 %}+{% endif %}{{ pos_totals[dtype] }}
</td>
</tr>
{% endif %}
</table>
</div>
{% endfor %}