e5a586f903
Move business code under modules/, env template to config/, PM2 single qihuo process, and _legacy shims for old imports. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
1.7 KiB
HTML
34 lines
1.7 KiB
HTML
{# Copyright (c) 2025-2026 马建军. All rights reserved. 专有软件,详见 LICENSE.zh-CN.txt #}
|
|
{% extends "base.html" %}
|
|
{% block title %}可开仓品种 - 国内期货 · 交易复盘系统{% endblock %}
|
|
{% block content %}
|
|
<div class="card">
|
|
<h2>可开仓品种 · 按资金筛选</h2>
|
|
<p class="hint">当前权益 <strong class="text-accent">{{ '%.2f'|format(capital) }}</strong> 元({{ trading_mode_label }})。
|
|
优先展示可开 1 手且 1% 风险规则下较友好的品种;灰色为保证金不足。</p>
|
|
</div>
|
|
<div class="card">
|
|
<div class="trade-table-wrap">
|
|
<table class="trade-table">
|
|
<thead>
|
|
<tr>
|
|
<th>品种</th><th>交易所</th><th>参考价</th><th>1手保证金</th><th>建议最低资金</th><th>状态</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for r in rows %}
|
|
<tr class="rec-{{ r.status }}">
|
|
<td><strong>{{ r.name }}</strong> <span class="text-muted">{{ r.ths }}</span></td>
|
|
<td>{{ r.exchange }}</td>
|
|
<td>{% if r.price %}{{ r.price }}{% else %}—{% endif %}</td>
|
|
<td>{% if r.margin_one_lot %}{{ r.margin_one_lot }}{% else %}—{% endif %}</td>
|
|
<td>{% if r.min_capital_one_lot %}{{ r.min_capital_one_lot }}{% else %}—{% endif %}</td>
|
|
<td><span class="badge {% if r.status=='ok' %}profit{% elif r.status=='blocked' %}loss{% else %}planned{% endif %}">{{ r.status_label }}</span></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|