{% extends "layout.html" %} {% set active_page = "trading" %} {% import 'macros/tables.html' as m_tables %} {% macro extract_trades(trades_list, sim_or_real) -%} {% for trade in trades_list %} {{ m_tables.trades_tr(trade, convert_type(trade.order_type),convert_timestamp(trade.filled_time), sim_or_real) }} {% endfor %} {%- endmacro %} {% block body %}

 Trades

{{ extract_trades(real_trades_history, "Real") }} {{ extract_trades(simulated_trades_history, "Simulated") }}
List of trades
# Exchange Pair Type Price Quantity Total Fee Execution

{% endblock %} {% block additional_scripts %} {% endblock additional_scripts %}