{% extends "base.html" %} {% block title %}期权双买交易{% endblock %} {% block heading %}期权双买交易{% endblock %} {% block breadcrumb %}跨式策略{% endblock %} {% block content %} {% set view = request.query_params.get('view', '') %}
{% if view != 'closed' %}| 品种 | 合约 | C行权价 | P行权价 | 开仓日期 | 看涨开仓价 | 看跌开仓价 | C手续费 | P手续费 | 总成本 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ t.product_code }} | {{ t.contract_code.replace(t.product_code, '', 1) }} | {{ t.call_strike_price }} | {{ t.put_strike_price }} | {{ t.open_date }} {{ weekdays[t.open_date.weekday()] }} | {{ t.call_open_price }} | {{ t.put_open_price }} | {{ t.call_open_fee or 0 }} | {{ t.put_open_fee or 0 }} | {{ "%.0f"|format(t.total_cost) }} |
| 品种 | 合约 | C行权价 | P行权价 | 开仓日 | 平仓日 | 持仓 | 看涨(开/平) | 看跌(开/平) | 总成本 | 盈亏 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ t.product_code }} | {{ t.contract_code.replace(t.product_code, '', 1) }} | {{ t.call_strike_price }} | {{ t.put_strike_price }} | {{ t.open_date }} {{ weekdays[t.open_date.weekday()] }} | {{ t.close_date }} {{ weekdays[t.close_date.weekday()] }} | {{ (t.close_date - t.open_date).days }}天 | {{ t.call_open_price }} / {{ t.call_close_price }} | {{ t.put_open_price }} / {{ t.put_close_price }} | {{ "%.0f"|format(t.total_cost) }} | {% set p = t.pnl %} {% if p is not none %} {% if p > 0 %}+{% endif %}{{ p }} ⓘ {% endif %} |