pre merge con giacomo

This commit is contained in:
Simone Garau
2025-09-30 15:36:50 +02:00
parent cce09b493e
commit 8304cf9ea8
5 changed files with 125 additions and 16 deletions

View File

@@ -14,6 +14,7 @@ from functools import wraps
from typing import Any, Callable, Optional, Type, Union, List
from requests.exceptions import RequestException, Timeout, ConnectionError
from binance.exceptions import BinanceAPIException, BinanceRequestException
from base import ProductInfo
# Configurazione logging
logger = logging.getLogger(__name__)
@@ -168,7 +169,7 @@ class ProviderFallback:
method_name: str,
*args,
**kwargs
) -> Any:
) -> list[ProductInfo]:
"""
Esegue un metodo su tutti i provider fino a trovarne uno che funziona.