{% extends "base.html" %} {% block scripts %} {% end %} {% block css %} {% end %} {% block title %} {% set currency_title = '' %} {% if args['currency'] %} {% set currency_title = ' ' + args['currency'] %} {% end %} {{ args['exchange_name'] }}{{ currency_title }} Ledger {% end %} {% block content %}

{{ args['exchange_name'] }}{{ currency_title }} Ledger

{% module StartEnd(args['start_end_widget']['start_time'], args['start_end_widget']['end_time']) %}
{% set fiat_currency = args['fiat_currency'] %} {% set currency = args['currency'] %} {% if not currency or currency == 'BTC' %} {% end %} {% if not currency or currency == fiat_currency %} {% end %} {% for table_entry in args.get('ledger_table') %} {% if not currency or currency == 'BTC' %} {% end %} {% if not currency or currency == fiat_currency %} {% end %} {% end %}
Description Credit DebitBTC Balance{{ fiat_currency }} BalanceDate (UTC)
{{ table_entry.get('description', '') }} {{ table_entry.get('credit', '') }} {{ table_entry.get('debit', '') }}{{ table_entry['balance'].get('BTC') }}{{ table_entry['balance'].get(fiat_currency) }}{{ table_entry.get('date') }}
{% end %}