fix: Critical error fixes - division by zero and mock data removal
- Add zero price validation in trading_executor to prevent division by zero - Remove mock prediction fallback - enforce NO SYNTHETIC DATA policy - System now fails gracefully without predictions rather than using fake data Fixes division by zero errors when executing trades Enforces REAL_MARKET_DATA_POLICY.md compliance
This commit is contained in:
@@ -6965,7 +6965,9 @@ class CleanTradingDashboard:
|
||||
logger.info("Enhanced training system initialized for model predictions")
|
||||
|
||||
except ImportError:
|
||||
logger.warning("Enhanced training system not available - using mock predictions")
|
||||
# CRITICAL: NO MOCK/SYNTHETIC DATA - System runs without predictions if not available
|
||||
logger.error("CRITICAL: Enhanced training system not available - predictions disabled. NEVER use mock data.")
|
||||
logger.error("See: reports/REAL_MARKET_DATA_POLICY.md")
|
||||
self.training_system = None
|
||||
except Exception as e:
|
||||
logger.error(f"Error initializing enhanced training system: {e}")
|
||||
|
||||
Reference in New Issue
Block a user