[% USE f2 = format('%.6f') %]

Report vom [% GENERATED %]

[% totalProfit = 0 %] [% totalValue = 0 %] [% FOREACH c IN DATA %] [% gain = f2(c.CURRENT_PRICE / c.LAST_WEEK_PRICE * 100 - 100) %] [% cur_value = f2(c.CURRENT_PRICE * c.COIN) %] [% totalValue = totalValue + cur_value %] [% cur_profit_value = f2((c.CURRENT_PRICE * c.COIN) - c.PRICE) %] [% cur_profit_perc = f2(cur_profit_value / c.PRICE * 100) %] [% totalProfit = totalProfit + cur_profit_value %] [% END %]
[% c.NAME %]
Währung[% c.NAME %] ([% c.CURRENCY %])
Kaufdatum[% c.DATE %]
Kaufwert[% f2(c.PRICE) %] Euro | [% c.COIN %] [% c.CURRENCY %]
Kaufkurs[% f2(c.BUYRATE) %] Euro/[% c.CURRENCY %]
aktueller Kurs[% f2(c.CURRENT_PRICE) %] Euro/[% c.CURRENCY %]
aktueller Wert[% cur_value %] Euro
aktueller Profit[% cur_profit_value %] Euro ([% cur_profit_perc %]%)

Wert (gesamt) ca. [% totalValue %] Euro

Gewinn (gesamt) ca. [% totalProfit %] Euro