中控增加下单,关键位,系统设置
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user