{% load cache %} {% include 'mixins/partials/notify.html' %} {% cache 600 objects_positions request.user.id object_list type %} {% for item in object_list %} {% endfor %}
account asset price units quote P/L side trades actions
{{ item.account }} {{ item.symbol }} {{ item.price }} {{ item.units }} {{ item.value }} {{ item.unrealized_pl }} {% if item.side == 'long' %} {% elif item.side == 'short' %} {% endif %} {{ item.trade_ids|length }}
{% if type == 'page' %} {% else %} {% endif %}
{% endcache %}