{% 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
{% 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 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 %}