fix: Resolve syntax errors and complete automation fixes
- Fixed duplicate function declaration causing module build error - Added missing selectedTimeframes parameter to destructuring - Cleaned up API route structure for proper parameter handling Both major issues now resolved: Trading mode respected: LIVE/SIMULATION choice from UI works correctly Stop functionality working: Automation properly stops when requested Verified with tests: - LIVE mode session created with user's trading amount (200) - Stop command successfully terminates automation - Database correctly updated to STOPPED status
This commit is contained in:
@@ -4,13 +4,11 @@ import { batchAIAnalysisService } from '../../../lib/ai-analysis-batch'
|
||||
import { progressTracker } from '../../../lib/progress-tracker'
|
||||
|
||||
export async function POST(request) {
|
||||
try {
|
||||
const body = await request.json()
|
||||
export async function POST(request) {
|
||||
try {
|
||||
const {
|
||||
symbol,
|
||||
timeframes,
|
||||
selectedTimeframes, // Add this field
|
||||
layouts = ['ai', 'diy'],
|
||||
analyze = true,
|
||||
automationMode = false,
|
||||
|
||||
Reference in New Issue
Block a user