{% extends "base.html" %} {% from "_provenance_macros.html" import provenance_link %} {% block title %}{{ symbol }} · net-alpha{% endblock %} {% block content %}

{{ symbol }}

Simulate sale
Open lots
{{ kpi_open_lots }}
Basis: ${{ "%.2f"|format(kpi_open_basis) }}
YTD realized P&L
${{ "%.2f"|format(kpi_realized_ytd) }}{% if realized_ref %}{{ provenance_link(realized_ref) }}{% endif %}
YTD disallowed
${{ "%.2f"|format(kpi_disallowed_ytd) }}
Accounts
{% for a in kpi_accounts %}{{ a }}{% if not loop.last %}, {% endif %}{% endfor %} {% if not kpi_accounts %}-{% endif %}
Last trade
{% if kpi_last_trade %}
{{ kpi_last_trade.action }} {{ kpi_last_trade.quantity }}
{{ kpi_last_trade.date }}
{% else %}
No trades
{% endif %}
{# Reconciliation strip — one per account that holds this symbol. Loads lazily. #} {% if account_ids %} {% for account_id in account_ids %}
Loading reconciliation…
{% endfor %} {% endif %}

Timeline

{% for t in trades %} {% endfor %} {% if not trades %} {% endif %}
Date Account Provenance Action Qty Basis Proceeds
{{ t.date }} {{ t.account }} {% if t.is_manual %}manual {% elif t.transfer_basis_user_set %}edited {% endif %} {{ display_action(t) }} {{ t.quantity }} {{ t.cost_basis if t.cost_basis is not none else "-" }} {{ t.proceeds if t.proceeds is not none else "-" }} {% if t.is_manual %} edit delete {% elif t.basis_source in ['transfer_in', 'transfer_out'] %} set basis & date {% endif %}
No trades for {{ symbol }} yet.

Open lots

{% include "_lots_table.html" %} {% if violations %}

Violations involving {{ symbol }}

{% for violation in violations %}
{% include "_violation_card.html" %}
{% endfor %} {% endif %} {% include "_schwab_lot_detail.html" %} {% endblock %}