{% extends "base.html" %} {% block title %}{{ _("Allocation") }} · Wealth Dashboard{% endblock %} {% block heading %}{{ _("Allocation") }}{% endblock %} {% block lede %}

{{ _("Where the money is by what it is — asset class, region, and buckets of your own — against where you meant it to be. Set a target per key and the page shows the drift; give it the amount you are about to invest and it says how to spread it so the drift shrinks, without selling anything.") }}

{% endblock %} {% block content %} {% set dim_titles = {'asset_class': _("By asset class"), 'region': _("By region"), 'bucket': _("By bucket")} %} {% set dim_notes = {'asset_class': _("Cash is every account balance; the rest is each holding's class."), 'region': _("Where a fund invests, or where a share is listed — guessed from the name and the ISIN, yours to correct."), 'bucket': _("Your own taxonomy — Core and Satellite, Safe and Play, whatever you think in. Nothing is guessed here.")} %} {% if not data.holdings and not data.cash %}

{{ _("Nothing to allocate yet — no holdings and no cash balance.") }}

{% else %}
{{ _f("{total} in total — {cash} of it cash.", total=money(data.total, base_currency), cash=money(data.cash, base_currency)) }} {{ _("Buying only: the keys below their target get the amount in proportion to how far below they are.") }}
{% for dim in dimensions %} {% set d = data.dimensions[dim] %}

{{ dim_titles[dim] }}

{% if d.has_targets %}{{ _f("targets set for {pct} %", pct='%g' | format(d.target_sum)) }}{% else %}{{ _("no targets yet") }}{% endif %}
{% if contribution %}{% endif %} {% for r in d.rows %} {% if contribution %}{% endif %} {% endfor %}
{{ _("Key") }}{{ _("Value") }}{{ _("Share") }}{{ _("Target") }}{{ _("Drift") }}{{ _("Buy") }}
{{ r.label }} {{ money(r.value, base_currency) }} {{ '%.1f' | format(r.share) }} % % {% if r.drift is not none %}{{ '%+.1f' | format(r.drift) }} %{{ _f("{amount} to target", amount=money(r.gap, base_currency)) }}{% else %}—{% endif %}{% if r.buy %}{{ money(r.buy, base_currency) }}{% else %}—{% endif %}
{% if dim == 'asset_class' %} {% elif dim == 'region' %} {% else %} {% endif %} %

{{ dim_notes[dim] }}

{% endfor %}

{{ _("What each holding is") }}

{{ _("guessed from the name and Yahoo's type; a guess is marked until you confirm it") }}
{% for h in data.holdings %} {% endfor %}
{{ _("Security") }}{{ _("Value") }}{{ _("Asset class") }}{{ _("Region") }}{{ _("Bucket") }}
{{ h.name or h.isin }}{{ h.isin }}{% if h.guessed %} · {{ _("guessed") }}{% endif %} {{ money(h.value_base, base_currency) if h.value_base else '—' }}
{% endif %} {% endblock %} {% block scripts %} {% if data.holdings or data.cash %} {% endif %} {% endblock %}