aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/templates
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/templates')
-rw-r--r--python/Dawn/templates/spot_blotter.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/python/Dawn/templates/spot_blotter.html b/python/Dawn/templates/spot_blotter.html
new file mode 100644
index 00000000..fbbd2545
--- /dev/null
+++ b/python/Dawn/templates/spot_blotter.html
@@ -0,0 +1,35 @@
+{% 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>Strategy</td>
+ <td>Spot Rate</td>
+ <td>Buy CCY</td>
+ <td>Buy Amount</td>
+ <td>Sell CCY</td>
+ <td>Sell Amount</td>
+ <td>Commission CCY</td>
+ <td>Commission Amount</td>
+ </tr>
+ </thead>
+ {% for trade in trades %}
+ <tr>
+ <td><a href="{{url_for('trade_manage', tradeid=trade.id, kind='spot')}}">{{trade.dealid}}</a></td>
+ <td>{{trade.trade_date}}</td>
+ <td>{{trade.settlement_date}}</td>
+ <td>{{trade.folder}}</td>
+ <td>{{trade.spot_rate}}</td>
+ <td>{{trade.buy_currency}}</td>
+ <td>{{trade.buy_amount}}</td>
+ <td>{{trade.sell_currency}}</td>
+ <td>{{trade.sell_amount}}</td>
+ <td>{{trade.commission_currency}}</td>
+ <td>{{trade.commission}}</td>
+ </tr>
+ {% endfor %}
+</table>
+{% endblock %}