{# 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)。
备份包含 futures.db 与 uploads/,压缩包可在其他服务器恢复。默认恢复目录 {{ backup_restore_dir }}。
| 文件名 | 大小 | 时间 | |
|---|---|---|---|
{{ item.name }} |
{{ item.size_mb }} MB | {{ item.mtime.replace('T', ' ') }} | 下载 |
暂无备份文件,可点击「立即备份」生成第一份。
{% endif %}.tar.gz 到目标服务器(如 /root/)。tar -xzf qihuo_backup_YYYYMMDD_HHMMSS.tar.gzchmod +x restore.sh && ./restore.sh(默认恢复到 {{ backup_restore_dir }})。RESTORE_DIR=/opt/qihuo ./restore.sh.env 后 pm2 restart qihuo。完整说明见项目文档 docs/BACKUP.md;压缩包内亦含 RESTORE.md。