aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/templates/wire_blotter.html
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/templates/wire_blotter.html')
-rw-r--r--python/Dawn/templates/wire_blotter.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/python/Dawn/templates/wire_blotter.html b/python/Dawn/templates/wire_blotter.html
new file mode 100644
index 00000000..8397e5df
--- /dev/null
+++ b/python/Dawn/templates/wire_blotter.html
@@ -0,0 +1,40 @@
+{% extends "base.html" %}
+{% block content %}
+<table class="table table-striped">
+ <thead>
+ <tr>
+ <td>Deal ID</td>
+ <td>Trade Date</td>
+ <td>Settle Date</td>
+ <td>Buy/Sell</td>
+ <td>Quantity</td>
+ <td>Type</td>
+ <td>Maturity</td>
+ <td>Price</td>
+ <td>Commission</td>
+ <td>Description</td>
+ <td>Ticker</td>
+ <td>Counterparty</td>
+ <td>Strategy</td>
+ </tr>
+ </thead>
+ {% for trade in trades %}
+ <tr>
+ <td><a href="{{url_for('wire_manage', wire_id=wire.id)}}">{{wire.dealid}}</a></td>
+ <td>{{trade.trade_date}}</td>
+ <td>{{trade.settle_date}}</td>
+ <td>{% if trade.buysell %}Buy{% else %}Sell{% endif %}</td>
+ <td>{{trade.quantity}}</td>
+ <td>{{trade.swap_type}}</td>
+ <td>{{trade.maturity}}</td>
+ <td>{{trade.price}}</td>
+ <td>{{trade.commission}}</td>
+ <td>{{trade.security_desc}}</td>
+ <td>{{trade.bbg_ticker}}</td>
+ <td><a href="{{url_for('edit_counterparty',
+ cpcode=trade.counterparty.code)}}">{{trade.counterparty.name}}</a></td>
+ <td>{{trade.folder}}</td>
+ </tr>
+ {% endfor %}
+</table>
+{% endblock %}