diff --git a/ft-app/app/templates/index.html b/ft-app/app/templates/index.html index 42ec499..50235f5 100644 --- a/ft-app/app/templates/index.html +++ b/ft-app/app/templates/index.html @@ -5,64 +5,65 @@ {% block content %} -{% for pg in product_groups %} -
| 合约 | 日期 | 开盘 | 收盘 | 最高 | 最低 | 振幅 | 次日振幅 | 操作 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ 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 %} -详情 → | -||||||
| 合约 | 日期 | 开盘 | 收盘 | 最高 | 最低 | 振幅 | 次日振幅 | 操作 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ 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 %} +详情 → | +||||||