fix: Respect user trading mode choice in optimized automation
Frontend changes: - Pass mode, tradingAmount, balancePercentage, dexProvider to optimized API - Send user's actual trading mode choice (LIVE/SIMULATION) Backend changes: - Accept mode and trading parameters from frontend request - Use passed mode instead of hardcoded 'SIMULATION' - Apply user's trading amount and balance percentage settings This fixes the issue where optimized automation always used SIMULATION regardless of user's LIVE trading selection.
This commit is contained in:
@@ -156,7 +156,11 @@ export default function AutomationPageV2() {
|
||||
timeframes: config.selectedTimeframes,
|
||||
layouts: ['ai', 'diy'],
|
||||
analyze: true,
|
||||
automationMode: true // Flag to indicate this is automation, not just testing
|
||||
automationMode: true, // Flag to indicate this is automation, not just testing
|
||||
mode: config.mode, // Pass the user's trading mode choice
|
||||
tradingAmount: config.tradingAmount,
|
||||
balancePercentage: config.balancePercentage,
|
||||
dexProvider: config.dexProvider
|
||||
}
|
||||
|
||||
const startTime = Date.now()
|
||||
|
||||
Reference in New Issue
Block a user