{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% set is_gold = kinds == ['gold'] %}{% set P = 'gold' if is_gold else 'inv' %} {% block content %}

{{ title }}

{{ 'Physical gold valued at live spot price' if is_gold else 'Stocks, ETFs and crypto at live prices' }} ·
{{ icon('plus', 'sm') }} {{ 'Purchase' if is_gold else 'Trade' }}
{% set a = t.get('all') %}
{{ icon('gem' if is_gold else 'line-chart') }}
Current value
{{ (a.value if a else 0)|eur }}
{% if a and a.missing_price %}{{ a.missing_price }} without price (counted at cost){% else %}live prices{% endif %}
{{ icon('banknote') }}
Paid
{{ (a.cost if a else 0)|eur }}
incl. fees, open positions
{{ icon('arrow-up-right' if a and a.pnl >= 0 else 'arrow-down-right') }}
Unrealised P/L
{{ (a.pnl if a else 0)|eur(2, true) }}
{{ (a.pnl_pct if a else None)|pct }}
{{ icon('check') }}
Realised P/L
{{ (a.realized if a else 0)|eur(2, true) }}
from sells
{% if not is_gold %}
{% for k, label in [('stock','Stocks & ETFs'),('crypto','Crypto')] %}{% set x = t.get(k) %}
{{ icon('bitcoin' if k == 'crypto' else 'bar-chart-3') }}
{{ label }}
{{ (x.value if x else 0)|eur }}
paid {{ (x.cost if x else 0)|eur }} · {{ (x.pnl if x else 0)|eur(2, true) }} ({{ (x.pnl_pct if x else None)|pct }})
{% endfor %}
{% endif %}

{{ icon('coins') }} Holdings

{% if not is_gold %}{% endif %}{% if is_gold %}{% endif %} {% for r in rows %}{% set as = r.asset %} {% if not is_gold %}{% endif %} {% if is_gold %}{% endif %} {% else %}{% endfor %}
AssetTypeQuantityFine goldAvg paidPricePaidValueP/L%
{{ as.name }}
{{ as.symbol }}{% if as.price_error %} · price error{% endif %} {% if as.manual_price is not none %} · manual price{% elif as.last_price_at %} · {{ as.last_price_at.strftime('%d-%m %H:%M') }}{% endif %}
{{ as.kind }}{{ r.qty|num }} {{ as.unit if as.unit != 'unit' }}{% if is_gold and as.purity != 1 %} @{{ as.purity|num }}{% endif %}{{ r.grams|num(2) }} g{{ r.avg|eur }} {{ r.price|eur }} {{ r.cost|eur }} {{ r.value|eur }} {{ r.pnl|eur(2, true) }} {{ r.pnl_pct|pct }}
{{ icon('pencil', 'sm') }}
No holdings yet. Add an asset below, then record your purchases.

{{ icon('line-chart') }} Value vs paid

{% if chart.labels %}
{% else %}
{{ icon('line-chart') }}
A data point is stored each time prices refresh.
{% endif %}

{{ icon('pie-chart') }} Allocation

{% if chart.alloc_values %}
{% else %}
{{ icon('pie-chart') }}
No priced holdings yet.
{% endif %}

{{ icon('plus') }} Record a {{ 'purchase' if is_gold else 'trade' }}

{% if assets %}
{% else %}

Add an asset first →

{% endif %}

{{ icon('sparkles') }} Add an asset

{% if is_gold %}

Quantity is the item's total weight in the chosen unit; value = weight × purity × spot. Spot is the COMEX gold price converted to EUR; dealers usually buy back 1–3 % below spot (set a manual price per item if you want to be conservative).

{% else %}

Stocks/ETFs: Yahoo Finance ticker incl. exchange suffix (VWRL.AS, IWDA.AS, ASML.AS, AAPL), converted to EUR. Crypto: CoinGecko id (bitcoin, ethereum, solana, cardano…) — find it in the coin's URL on coingecko.com.

{% endif %}

{{ icon('clock') }} History

{% for tr in trades %} {% else %}{% endfor %}
DateAssetSideQtyPriceFeesTotalNote
{{ tr.date.strftime('%d-%m-%Y') }}{{ tr.asset.name }}{{ tr.side }} {{ tr.quantity|num }}{{ tr.price|eur }}{{ tr.fees|eur }} {{ (tr.quantity * tr.price + (tr.fees if tr.side == 'buy' else -tr.fees))|eur }}{{ tr.notes }}
No trades yet.
{% endblock %}