- 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