{% extends "accounts/base.html" %} {% block title %}Custom Spread Selector{% endblock %} {% block content %}

Custom Spread Selector

{{ form.symbol.label_tag }} {{ form.symbol }}
{{ form.min_dte.label_tag }} {{ form.min_dte }}
{{ form.max_dte.label_tag }} {{ form.max_dte }}
{% if expirations %}
Expiration Dates:
{% for exp in expirations %} {% endfor %}
{% csrf_token %} {% for group in chain_data %} {% for row in group.rows %} {% for cell in row.cells %} {% endfor %} {% endfor %} {% endfor %}
Call Bid Call Mark Call Ask Call Δ Strike Put Bid Put Mark Put Ask Put Δ
Expiration Date: {{ group.expiration }} ({{ group.dte }} DTE)
{% if "bid" in cell.label or "ask" in cell.label or "mark" in cell.label %} {% if cell.value %}
{% else %} -- {% endif %} {% elif cell.is_delta %} {{ cell.value|floatformat:3|default:"--" }} {% elif cell.is_strike %} ${{ cell.value }} {% else %} {{ cell.value }} {% endif %}
{% endif %} {% endblock %}