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:
@@ -657,7 +657,8 @@ class SimpleAutomation {
|
|||||||
|
|
||||||
getStatus() {
|
getStatus() {
|
||||||
const baseStatus = {
|
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',
|
mode: this.config?.mode || 'SIMULATION',
|
||||||
enableTrading: this.config?.enableTrading || false,
|
enableTrading: this.config?.enableTrading || false,
|
||||||
tradingStatus: this.config?.enableTrading ? 'REAL TRADES' : 'SIMULATED ONLY',
|
tradingStatus: this.config?.enableTrading ? 'REAL TRADES' : 'SIMULATED ONLY',
|
||||||
@@ -665,6 +666,7 @@ class SimpleAutomation {
|
|||||||
timeframes: this.config?.selectedTimeframes || [],
|
timeframes: this.config?.selectedTimeframes || [],
|
||||||
automationType: 'SIMPLE',
|
automationType: 'SIMPLE',
|
||||||
lastDecision: this.lastDecision, // Include last AI decision for UI display
|
lastDecision: this.lastDecision, // Include last AI decision for UI display
|
||||||
|
config: this.config, // Include config for debugging
|
||||||
...this.stats
|
...this.stats
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user