{% extends "base.html" %} {% block title %}持仓监控 - 国内期货监控系统{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ trading_mode_label }} {% if ctp_status.connected %}CTP 已连接{% else %}CTP 未连接{% endif %} {{ risk_status.status_label }} 权益 {{ '%.2f'|format(capital) }} {% if ctp_account.available is defined and ctp_status.connected %} 可用 {{ '%.2f'|format(ctp_account.available) }} {% endif %}
断线自动重连 · 开盘前 30 分钟自动连接

期货下单

计仓 {{ sizing_mode_label }} {% if sizing_mode == 'risk' %}· 单笔风险 {{ risk_percent }}%{% endif %}

持仓监控

后台每秒拉取 CTP 并推送;刷新页面会使用浏览器缓存,不再阻塞读柜台。

{% if ctp_status.connected %}等待持仓推送…{% else %}请先连接 CTP 查看柜台持仓{% endif %}

品种推荐

最大手数 = floor(权益 × 保证金上限 {{ max_margin_pct }}% ÷ 1手保证金);当前权益 {{ '%.2f'|format(capital) }} 元。参考止损/止盈按 20 跳、盈亏比 2:1 估算。 {% if recommend_updated_at %}每日后台更新 · 最近 {{ recommend_updated_at }}{% else %}等待今日后台刷新…{% endif %}

{% if recommend_rows %} {% for r in recommend_rows %} {% endfor %} {% else %} {% endif %}
品种交易所参考价 参考止损参考止盈 1手保证金1手手续费最大手数状态
{{ r.name }} {{ r.main_code or r.ths }} {{ r.exchange }} {% if r.price %}{{ r.price }}{% else %}—{% endif %} {% if r.ref_stop_loss %}{{ r.ref_stop_loss }}{% else %}—{% endif %} {% if r.ref_take_profit %}{{ r.ref_take_profit }}{% else %}—{% endif %} {% if r.margin_one_lot %}{{ r.margin_one_lot }}{% else %}—{% endif %} {% if r.open_fee_one_lot is defined and r.open_fee_one_lot is not none %}{{ r.open_fee_one_lot }}{% else %}—{% endif %} {% if r.max_lots is not none and r.max_lots > 0 %}{{ r.max_lots }}{% else %}—{% endif %} {{ r.status_label }}
等待今日后台刷新推荐…
{% endblock %} {% block extra_js %} {% endblock %}