{# Copyright (c) 2025-2026 马建军. All rights reserved. 专有软件,详见 LICENSE.zh-CN.txt #} {% extends "base.html" %} {% block title %}系统设置 - 国内期货 · 交易复盘系统{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {% macro settings_card(key, title, extra_class='') %}
投资者代码、密码、前置地址在此维护(优先于 .env)。保存后将自动断开并用新地址重连 CTP(须开启下方自动连接)。
{% if ctp_status.connected %}
已连接
{% elif ctp_status.connecting %}
连接中
{% elif ctp_status.disabled_hint %}
{{ ctp_status.disabled_hint }}
{% elif ctp_status.last_error %}
{{ ctp_status.last_error }}
{% endif %}
当前行情源:{{ quote_label }}
CTP 已连接时使用柜台行情;未连接时回退新浪接口。
合约代码按同花顺格式(如 ag2608、IF2606)。
备份含 futures.db、uploads/,默认恢复至 {{ backup_restore_dir }}。
| 文件名 | 大小 | 时间 | |
|---|---|---|---|
{{ item.name }} |
{{ item.size_mb }} MB | {{ item.mtime.replace('T', ' ')[:16] }} | 下载 |
暂无备份,可点「立即备份」。
{% endif %}.tar.gz 到目标服务器(如 /root/)。tar -xzf qihuo_backup_*.tar.gzchmod +x restore.sh && ./restore.shRESTORE_DIR=/opt/qihuo ./restore.sh.env 后重启服务。