From 60df2b46672613682e4b4247310adb1f246ed9b6 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Sat, 26 Jul 2025 20:11:33 +0200 Subject: [PATCH] fix: enable LIVE trading by setting useRealDEX=true in automation - Added useRealDEX: true to trade payload in simple-automation.js - System was executing SIMULATED trades instead of LIVE trades - Automation now sends proper parameter to enable real Drift trading - Fixes 'SIMULATED Drift perpetual trade' execution mode - Enables actual position opening on Drift Protocol - Trading automation now executes REAL trades as intended Verified: - Trade payload now includes useRealDEX: true - API route logic will execute live trades - Container has been updated with the fix --- lib/simple-automation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/simple-automation.js b/lib/simple-automation.js index 0818fba..37a3200 100644 --- a/lib/simple-automation.js +++ b/lib/simple-automation.js @@ -322,6 +322,7 @@ class SimpleAutomation { amount: this.config.tradingAmount || 10, // Default to $10 if not set type: 'market', tradingMode: 'SPOT', + useRealDEX: true, // Enable LIVE trading instead of simulation analysis: analysis // Include analysis for reference };