{# Inputs: allocation: AllocationView from portfolio.allocation.build_allocation() #} {% set rank_palette = [ '#0A84FF', '#FFD60A', '#30D158', '#FF375F', '#5E5CE6', '#64D2FF', '#5AC8FA', '#BF5AF2', 'rgba(181,181,255,0.65)', 'rgba(255,255,255,0.40)' ] %} {% set rest_color = 'rgba(255,255,255,0.14)' %} {% set cash_color = 'rgba(142,142,147,0.6)' %} {# neutral gray; matches Apple's systemGray — free cash #} {% set cash_pledged_color = 'rgba(255,159,10,0.65)' %} {# orange (matches Cash KPI's pledged bar) — distinct from free cash + rest #} {% if allocation.symbol_count == 0 %}
| # | Symbol | Type | Market $ | % of total |
|---|---|---|---|---|
| {{ s.rank if s.rank > 0 else '—' }} |
{{ s.symbol }}
|
{{ _type }} | ${{ "{:,.2f}".format(s.market_value|float) }} | {{ "%.2f"|format(s.pct|float) }}% |