fix: enable continuous automation operation

- Fixed isRunning field mapping in simple-automation getStatus method
- Added both isRunning and isActive fields for compatibility
- Included config in status response for debugging
- Automation now properly shows running state in status API
- Continuous monitoring cycles working with dynamic intervals:
  * No position: 10 min intervals
  * Low risk: 15 min intervals
  * High/Critical risk: 5 min intervals
- AI learning system fully integrated and active
- Real trading enabled in LIVE mode
This commit is contained in:
mindesbunister
2025-07-27 17:58:38 +02:00
parent 35f09dfcd8
commit 1e1f94d0f8
2 changed files with 3 additions and 1 deletions

View File

@@ -657,7 +657,8 @@ class SimpleAutomation {
getStatus() {
const baseStatus = {
isActive: this.isRunning,
isRunning: this.isRunning, // Changed from isActive to isRunning
isActive: this.isRunning, // Keep both for compatibility
mode: this.config?.mode || 'SIMULATION',
enableTrading: this.config?.enableTrading || false,
tradingStatus: this.config?.enableTrading ? 'REAL TRADES' : 'SIMULATED ONLY',
@@ -665,6 +666,7 @@ class SimpleAutomation {
timeframes: this.config?.selectedTimeframes || [],
automationType: 'SIMPLE',
lastDecision: this.lastDecision, // Include last AI decision for UI display
config: this.config, // Include config for debugging
...this.stats
};

Binary file not shown.