Final review
- rm PublicBinanceAgent & updated demo - moved in the correct folder some tests - fix binance bug
This commit is contained in:
@@ -30,7 +30,6 @@ from app.markets import (
|
||||
CoinBaseWrapper,
|
||||
CryptoCompareWrapper,
|
||||
BinanceWrapper,
|
||||
PublicBinanceAgent,
|
||||
BaseWrapper
|
||||
)
|
||||
|
||||
@@ -239,13 +238,6 @@ def initialize_providers() -> Dict[str, BaseWrapper]:
|
||||
providers = {}
|
||||
env_vars = check_environment_variables()
|
||||
|
||||
# PublicBinanceAgent (sempre disponibile)
|
||||
try:
|
||||
providers["PublicBinance"] = PublicBinanceAgent()
|
||||
print("✅ PublicBinanceAgent inizializzato con successo")
|
||||
except Exception as e:
|
||||
print(f"❌ Errore nell'inizializzazione di PublicBinanceAgent: {e}")
|
||||
|
||||
# CryptoCompareWrapper
|
||||
if env_vars["CRYPTOCOMPARE_API_KEY"]:
|
||||
try:
|
||||
@@ -267,14 +259,12 @@ def initialize_providers() -> Dict[str, BaseWrapper]:
|
||||
print("⚠️ CoinBaseWrapper saltato: credenziali Coinbase non complete")
|
||||
|
||||
# BinanceWrapper
|
||||
if env_vars["BINANCE_API_KEY"] and env_vars["BINANCE_API_SECRET"]:
|
||||
try:
|
||||
providers["Binance"] = BinanceWrapper()
|
||||
print("✅ BinanceWrapper inizializzato con successo")
|
||||
except Exception as e:
|
||||
print(f"❌ Errore nell'inizializzazione di BinanceWrapper: {e}")
|
||||
else:
|
||||
print("⚠️ BinanceWrapper saltato: credenziali Binance non complete")
|
||||
|
||||
try:
|
||||
providers["Binance"] = BinanceWrapper()
|
||||
print("✅ BinanceWrapper inizializzato con successo")
|
||||
except Exception as e:
|
||||
print(f"❌ Errore nell'inizializzazione di BinanceWrapper: {e}")
|
||||
|
||||
return providers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user