{% for row in timeline_rows %} {% set t = row.trade %} {% set is_synth = t.basis_source == 'option_short_close_expiry' %} {% set is_transfer = t.basis_source in ('transfer_in', 'transfer_out') %} {% endfor %} {% if not timeline_rows %} {% endif %}
Date Account Provenance Action Qty Basis Proceeds G/L Pairing
{% if row.pair and row.pair.pair_role %} {% endif %} {% if is_transfer %} Acq {{ t.date }} {% if t.transfer_date and t.transfer_date != t.date %}
Xferred {{ t.transfer_date }}
{% endif %} {% else %} {{ t.date }} {% endif %}
{{ t.account }} {% if is_synth %}auto {% elif t.is_manual %}manual {% elif t.transfer_basis_user_set %}edited {% endif %} {{ display_action(t, assigned_from=row.assigned_from) }} {{ t.quantity }} {% if t.cost_basis is not none %} {{ fmt_currency(t.cost_basis) }} {% elif t.basis_source in ('transfer_in', 'transfer_out') and not t.is_manual %} {% with trade_id=t.id %}{% include "_ticker_basis_chip.html" %}{% endwith %} {% else %} {% endif %} {{ t.proceeds if t.proceeds is not none else "-" }} {% if row.gain_loss is not none %} {% if row.gain_loss >= 0 %}+{% else %}−{% endif %}${{ "%.2f"|format(row.gain_loss|abs) }} {% else %} {% endif %} {% if row.pair %} {% set pf = row.pair %} {% if pf.pair_role == 'still_open' %} still open {% elif pf.pair_role == 'closed_via_assignment' %} closed via assignment ↓ {% elif pf.pair_role == 'open' %} open{% if pf.pair_position and pf.pair_position[1] > 1 %} {{ pf.pair_position[0] }} of {{ pf.pair_position[1] }}{% endif %} ↓ {% elif pf.pair_role == 'close' %} close{% if pf.pair_position and pf.pair_position[1] > 1 %} {{ pf.pair_position[0] }} of {{ pf.pair_position[1] }}{% endif %}{% if pf.multi_lot_overflow %} +{{ pf.multi_lot_overflow }} more lot{% if pf.multi_lot_overflow > 1 %}s{% endif %}{% endif %} ↑ {% endif %} {% if pf.roll_from_pair_key %} ↻ rolled from prev {% endif %} {% if pf.assignment_link %} {% if pf.assignment_link.direction == 'to_stock' %} → became stock lot {% else %} ← from put assignment {% endif %} {% endif %} {% endif %} {% if t.is_manual %} edit delete {% elif t.basis_source in ['transfer_in', 'transfer_out'] %} set basis & date {% endif %}
No trades for {{ symbol }} yet.
{% with paginated_view='timeline', page=timeline_page, total_pages=timeline_total_pages, total_count=timeline_total_count, rows_on_page=timeline_rows|length %} {% include "_ticker_pagination.html" %} {% endwith %}