Expose sim/live matching mode in env config UI.

Saving SIM_DEFAULT_MODE also switches runtime trading.mode immediately.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-14 18:14:17 +08:00
parent 56618a6655
commit 919ac70bc2
5 changed files with 67 additions and 4 deletions
+2 -2
View File
@@ -72,8 +72,8 @@ TRADING_DAY_RESET_OPEN_GUARD_ENABLED=true
LIVE_TRADING_ENABLED=true
# =============================================================================
# 模拟资金(本地 SQLite 钱包; 系统设置可切换 模拟资金/实盘)
# 交易模式默认由系统设置(runtime trading.mode)切换; 也可启动时指定默认
# 模拟资金(本地 SQLite 钱包; env「撮合模式」或系统设置可切换 sim/live)
# sim=本地模拟资金撮合; live=实盘账户
# =============================================================================
SIM_DEFAULT_MODE=sim
SIM_INITIAL_EQUITY_USDT=10000