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

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

Post 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

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post