{% extends "hedge/base.html" %} {% load hedge_extras %} {% block title %}Hedge book report{% endblock %} {% block content %}

Hedge book

CSV
{% for ccy, g in groups.items %}

{{ ccy }} open: bought {{ g.buy|num }}, sold {{ g.sell|num }}

{% for i in g.items %}{% endfor %}
RefCounterpartyTypeSideNotionalRateTradeMaturityStatus
{{ i.reference }}{{ i.counterparty }}{{ i.get_kind_display }}{{ i.direction }}{{ i.notional|num }}{{ i.rate|num:4 }}{{ i.trade_date }}{{ i.maturity }}{{ i.status|title }}
{% endfor %} {% endblock %}