{% if loop.index == 1 %}
- | {{ r.code }} |
+ {{ r.code|string|padLeft(6) }} |
{{ r.name }} |
{{ r.date }} |
- {{ r.buy }} |
+ {{ r.buy|float|round(4) }} |
{{ r.volume }} |
- {{ r.net_buy }} |
+ {{ r.net_buy|float|round(2) }} |
{{ p.date or "" }} |
- {{ p.sell or "" }} |
+ {{ (p.sell or 0)|float|round(4) }} |
{{ p.volume or "" }} |
- {{ p.net_sell or "" }} |
- {{ (r.gain or 0)|float|round(4) }}% |
- {{ (r.net_gain or 0)|float|round(4) }}% |
+ {{ (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 %}
+ |
改 删
|
@@ -51,12 +63,12 @@
{% endfor %}
{% else %}