settings: add Exchange API tab for instance system settings.

Allow configuring perpetual API keys and live trading from Settings, reusing the existing env save API.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 17:09:53 +08:00
parent 82d16a73e8
commit fd1bf9982c
8 changed files with 150 additions and 4 deletions
+3 -1
View File
@@ -2,7 +2,7 @@
<div class="settings-page full">
<div class="env-config-head card">
<h2>系统设置</h2>
<p class="settings-env-hint env-config-head-hint">各区块说明见 <code>docs/系统设置说明.md</code>.</p>
<p class="settings-env-hint env-config-head-hint">交易所 API、账户密码、划转与显示开关等在此维护.</p>
</div>
{% if settings_tabs %}
@@ -20,6 +20,8 @@
<section class="env-panel env-panel--{{ loop.index0 }} settings-tab-panel" role="tabpanel">
{% if tab.key == 'nav' %}
{% include 'display_prefs_panel.html' %}
{% elif tab.key == 'exchange_api' %}
{% include 'exchange_api_settings_panel.html' %}
{% elif tab.key == 'password' %}
{% include 'password_settings_panel.html' %}
{% elif tab.key == 'transfer' %}