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
This commit is contained in:
mindesbunister
2025-07-26 20:11:33 +02:00
parent d38511f580
commit 60df2b4667

View File

@@ -322,6 +322,7 @@ class SimpleAutomation {
amount: this.config.tradingAmount || 10, // Default to $10 if not set amount: this.config.tradingAmount || 10, // Default to $10 if not set
type: 'market', type: 'market',
tradingMode: 'SPOT', tradingMode: 'SPOT',
useRealDEX: true, // Enable LIVE trading instead of simulation
analysis: analysis // Include analysis for reference analysis: analysis // Include analysis for reference
}; };