Code: Select all
def _validate_signal_quality(self, signal):
source = signal.get('source', 'unknown')
real_sources = ['yahoo', 'enhanced', 'yfinance', 'market_data', 'real_time']
if source not in real_sources:
print(f" ❌ Invalid data source: {source}")
return False
return True