{% if not rows %}
| Symbol | Accounts | Qty | Mkt $ | Open Cost | Avg Basis | Cash Sunk/sh | {{ period_label }} Realized | Unrealized |
|---|---|---|---|---|---|---|---|---|
| {{ r.symbol }} | {% if r.accounts|length <= 3 %} {{ r.accounts|join(' ยท ') }} {% else %} {{ r.accounts[0] }} +{{ r.accounts|length - 1 }} more {% endif %} | {{ "%.4f"|format(r.qty|float) }} | {% if r.market_value is none %}โ {% else %}${{ "%.2f"|format(r.market_value|float) }}{% endif %} | ${{ "%.2f"|format(r.open_cost|float) }} | ${{ "%.2f"|format(r.avg_basis|float) }} | ${{ "%.2f"|format(r.cash_sunk_per_share|float) }} | {% if r.realized_pl != 0 %}{% if r.realized_pl < 0 %}-{% else %}+{% endif %}${{ "%.2f"|format(r.realized_pl|float|abs) }}{% else %}โ{% endif %} | {% if r.unrealized_pl is none %}โ {% else %}{% if r.unrealized_pl < 0 %}-{% else %}+{% endif %}${{ "%.2f"|format(r.unrealized_pl|float|abs) }}{% endif %} |