Trades

{% if request.args.get('keyword', '') %} {% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %} {{ message }} {% endfor %}
{% endif %} {% endwith %}

{% for trade in trades %} {% if trade.type == 'BUY' %} {% elif trade.type == 'SELL' %} {% else %} {% endif %} {% if trade.type == 'BUY' %} {% elif trade.type == 'SELL' %} {% else %} {% endif %} {% endfor %}
Date Ticker Exchange Currency FX Type Quantity Price Fees Proceeds Note
{{ trade.date_display }} {{ trade.ticker }} {{ exchange_names[trade.exchange] }} {{ trade.currency }} {{ currency_icons[trade.currency] }} {{ trade.fx or '' }}{{ trade.type }}{{ trade.type }}{{ trade.type }}{{ trade.quantity }} {{ trade.price }} {{ trade.fees }}{{ "{:,.2f}".format((trade.price * -trade.quantity - trade.fees) | round(2)) }}{{ "{:,.2f}".format(trade.price * trade.quantity - trade.fees | round(2)) }}{{ "{:,.2f}".format(trade.price * -trade.quantity - trade.fees | round(2)) }}{{ trade.note or '' }} Edit
{% include "loading.html" %}