{# Copyright (c) 2025-2026 马建军. All rights reserved. 专有软件,详见 LICENSE.zh-CN.txt #} {% extends "base.html" %} {% block title %}系统设置 - 国内期货 · 交易复盘系统{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
投资者代码、密码、前置地址在此维护(优先于 .env)。保存后将自动断开并用新地址重连 CTP。
{% if ctp_status.connected %}
已连接
{% elif ctp_status.connecting %}
连接中
{% elif ctp_status.last_error %}
{{ ctp_status.last_error }}
{% endif %}
当前行情源:{{ quote_label }}
CTP 已连接时使用柜台行情;未连接时回退新浪接口。
合约代码按同花顺格式(如 ag2608、IF2606)。