{% include "_traffic_light.html" with context %} {% if not options %}
No holdings of {{ ticker }} in any account.
{% else %}

Per-account options for {{ ticker }}

{% for opt in options %}
{{ opt.account.display() }}
{% if opt.would_trigger_wash_sale %} {{ opt.confidence }} {% else %} No wash sale {% endif %}
Realized P&L
${{ "%.2f"|format(opt.realized_pnl|float) }}
{% if opt.insufficient_shares %}
Insufficient shares: only {{ opt.available_shares }} held.
{% endif %}
Lots consumed (FIFO)
{% for lot in opt.lots_consumed_fifo %} {% endfor %}
{{ lot.purchase_date }} {{ lot.quantity }} ${{ "%.2f"|format(lot.basis_per_share|float) }}/sh
{% endfor %}
{% endif %}