中控增加下单,关键位,系统设置

This commit is contained in:
dekun
2026-05-22 10:37:35 +08:00
parent 94d4c3b777
commit 6d7b45e714
4 changed files with 38 additions and 9 deletions
+5 -6
View File
@@ -19,16 +19,15 @@ const path = require("path");
const HUB_DIR = __dirname;
const REPO_ROOT = path.join(HUB_DIR, "..");
const PY = path.join(HUB_DIR, ".venv", "bin", "python");
const AGENT = path.join(HUB_DIR, "agent.py");
const RUN_SH = path.join(HUB_DIR, "scripts", "run_hub.sh");
const RUN_HUB = path.join(HUB_DIR, "scripts", "run_hub.sh");
const RUN_AGENT = path.join(HUB_DIR, "scripts", "run_agent.sh");
function agentApp(name, exchangeDir, exchange, port) {
return {
name,
cwd: path.join(REPO_ROOT, exchangeDir),
script: AGENT,
interpreter: PY,
script: RUN_AGENT,
interpreter: "bash",
instances: 1,
autorestart: true,
watch: false,
@@ -50,7 +49,7 @@ module.exports = {
{
name: "manual-trading-hub",
cwd: HUB_DIR,
script: RUN_SH,
script: RUN_HUB,
interpreter: "bash",
instances: 1,
autorestart: true,