{# Pane header — two-line stack per the cockpit spec. Line 1 (identifier): sym · qty · account · last price Line 2 (status + value): ST/LT pill · basis · unrealized $/% #}
{# Line 1 — identifier row #}
{{ sym }} {% if qty %}· {{ fmt_quantity(qty) }} sh{% endif %} {% if account_label %}· {{ account_label }}{% endif %} {% if last_price %}· last {{ fmt_currency(last_price) }}{% endif %}
{# Line 2 — status + value row #} {% if header_status or (loss is not none) or open_basis %}
{% if header_status %} {{ header_status }} {% endif %} {% if open_basis %}basis {{ fmt_currency(open_basis) }}{% endif %} {% if loss is not none %} {{ fmt_currency(loss) }} {% if open_basis and open_basis > 0 %} ({{ '{:+.1%}'.format(loss / open_basis) }}) {% endif %} {% endif %}
{% endif %}