{% extends "base.html" %} {% block title %}手续费配置 - 国内期货监控系统{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

CTP 手续费

费率由后台从 CTP 柜台 同步写入数据库,每日自动更新一次,本页只读展示。

{% if ctp_connected %} CTP 已连接 {% else %} CTP 未连接 {% endif %} {% if fee_synced_today %} 今日已同步 {% else %} 今日未同步 {% endif %} {% if fee_last_sync %} 上次:{{ fee_last_sync[:16] }} {% endif %} {% if fee_counts.get('ctp') %} 共 {{ fee_counts.ctp }} 个品种 {% endif %}

品种费率表

{% for r in rates %} {% else %} {% endfor %}
品种交易所乘数 开仓(元/手)开仓(比例) 平昨(元/手)平昨(比例) 平今(元/手)平今(比例) 更新
{{ r.product }} {{ r.exchange or '—' }} {{ r.mult }} {{ r.open_fixed }} {{ r.open_ratio }} {{ r.close_yesterday_fixed }} {{ r.close_yesterday_ratio }} {{ r.close_today_fixed }} {{ r.close_today_ratio }} {{ (r.updated_at or '')[:16] }}
暂无 CTP 费率,请连接 CTP 后等待自动同步或点击「立即同步」

公式:单边 = 固定(元/手)×手数 + 比例×价格×乘数×手数;往返 = 开仓 + 平仓(平今/平昨自动判断)。 {% if ctp_connected and not fee_counts.get('ctp') %}
数据库尚无 CTP 费率,请点击「立即同步」或等待后台每日任务。 {% endif %}

{% endblock %}