{% extends "base.html" %} {% block title %}行情数据{% endblock %} {% block heading %}行情数据{% endblock %} {% block breadcrumb %}合约总览{% endblock %} {% block content %} {% set active_product = request.query_params.get('product', product_groups[0].code if product_groups else '') %}
| 合约 | 日期 | 开盘 | 收盘 | 最高 | 最低 | 振幅 | 次日振幅 | 操作 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ c }} | {% if c in contract_bars %}{{ contract_bars[c].date }} | {{ contract_bars[c].open|int }} | {{ contract_bars[c].close|int }} | {{ contract_bars[c].high|int }} | {{ contract_bars[c].low|int }} | {% if contract_bars[c].amp_5d %} {{ contract_bars[c].amp_5d|int }} {% else %} — {% endif %} | {% if c in contract_next_amp %} {{ contract_next_amp[c] }} {% else %} — {% endif %} | {% else %}暂无数据 | {% endif %}详情 → | ||||||