Page 1 of 1

Python -Validierungsfunktion lehnt die Datenquelle "yahoo_finance" ab - wie kann man beheben?

Posted: 04 Sep 2025, 22:32
by Anonymous
My Python Trading System Validation Function lehnt Signale mit Fehler "Ungültige Datenquelle: yahoo_finance" ab. /> Hier ist der Validierungscode, der fehlschlägt: < /p>

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