{# 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 柜台行情(需已连接);仅行情页 K 线图表使用新浪接口。
权益 20 万以下四品种(玉米、豆粕、甲醇、螺纹钢)K 线预存在独立库 data/kline.db。
合约代码按同花顺格式(如 ag2608、IF2606)。
127.0.0.1:11434)上传后会校验 manifest 与包结构,通过后加入下方列表。
备份含 futures.db、uploads/、.env。网页恢复目标:{{ backup_restore_dir }}。
| 文件名 | .env | 大小 | 时间 | 操作 |
|---|---|---|---|---|
{{ item.name }} |
{% if item.includes_env %}有{% else %}—{% endif %} | {{ item.size_mb }} MB | {{ (item.created_at or item.mtime).replace('T', ' ')[:16] }} | 下载 |
暂无备份,可点「立即备份」。
{% endif %}.tar.gz,或从列表下载备份到本机。futures.db、uploads/ 与 .env,然后自动重启。restore.sh(见 RESTORE_DIR)。