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:
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user