{% extends "base.html" %} {% from "_provenance_macros.html" import provenance_link %} {% block title %}{{ symbol }} · net-alpha{% endblock %} {% block content %}
| 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 }} | {{ t.cost_basis if t.cost_basis is not none else "-" }} | {{ 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. | ||||||||
| Account | Contract | Opened | Qty short | Premium received | Cash secured | DTE |
|---|---|---|---|---|---|---|
| {{ s.account }} | {% if s.call_put == 'C' %}CALL{% else %}PUT{% endif %} ${{ "%g"|format(s.strike) }} · {{ s.expiry.strftime('%m/%d/%y') }} short | {{ s.opened_at if s.opened_at else "—" }} | -{{ s.qty_short }} | +${{ "%.2f"|format(s.premium_received) }} | {% if s.call_put == 'P' %}${{ "%.0f"|format(s.cash_secured) }}{% else %}—{% endif %} | {% if dte is not none %}{{ dte }}d{% else %}—{% endif %} |