Add SIM/LIVE switch with API keys saved to .env and OKX live executor.

Enable settings UI for mode/keys, gate strategy start when LIVE is not ready, and stop PM2 from forcing MODE=SIM.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-26 21:08:39 +08:00
parent c2113b1a57
commit e666230d0b
19 changed files with 1367 additions and 33 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = {
args: 'app.main:app --host 0.0.0.0 --port 5155',
interpreter: 'none',
env: {
MODE: 'SIM',
// MODE 以仓库根 .env 为准(设置页可切 SIM/LIVE),勿在此硬编码覆盖
ENV_NAME: 'test',
TZ: 'Asia/Shanghai',
},