{% if lots %} {% include "_lots_table.html" %} {% elif open_shorts %}
No long lots on {{ symbol }} — see Open short options below.
{% else %}
No open positions on {{ symbol }}.
{% endif %} {% if open_shorts %}

Open short options

{% for s in open_shorts %} {% set dte = (s.expiry - kpi_today).days if kpi_today else None %} {% endfor %}
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 %}
{% endif %}