{% extends "nav" %} {% block title %}交易{% endblock title %} {% block container %}
| 代码 | 名称 | 买入日期 | 买入价 | 买量 | 实际买入 | 卖出日期 | 卖出价 | 卖量 | 实际卖出 | 收益 | 实际收益 | 操作 | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ r.code|string|padLeft(6) }} | {{ r.name }} | {{ r.date }} | {{ r.buy|float|round(4) }} | {{ r.volume }} | {{ r.net_buy|float|round(2) }} | {{ p.date or "" }} | {{ (p.sell or 0)|float|round(4) }} | {{ p.volume or "" }} | {{ (p.net_sell or 0)|float|round(2) }} | {% if r.gain %} {{ r.gain|float|round(2) }} ({{ ((r.gain|float)/(r.buy|float)/(r.volume|float)*100)|round(2) }}%) {% else %} - {% endif %} | {% if r.net_gain %} {{ r.net_gain|float|round(2) }} ({{ ((r.net_gain|float)/(r.net_buy|float)*100)|round(2) }}%) {% else %} - {% endif %} | 改 删 | {% else %}{{ p.date or "" }} | {{ p.sell or "" }} | {{ p.volume or "" }} | {{ p.net_sell or "" }} | {% endif %}
| {{ r.code|string|padLeft(6) }} | {{ r.name }} | {{ r.date }} | {{ r.buy|float|round(4) }} | {{ r.volume }} | {{ r.net_buy|float|round(2) }} | - | - | 改 删 | ||||||||
| 添加 高级筛选 未清仓 已清仓 | ||||||||||||||||