Rimossi TODO e Aggiunto documentazione per metodi aggregated

This commit is contained in:
2025-10-04 01:28:16 +02:00
parent cc3a56cb6d
commit 42ec2e6eef
5 changed files with 22 additions and 4 deletions

View File

@@ -65,6 +65,8 @@ class MarketAPIsTool(BaseWrapper, Toolkit):
asset_ids (list[str]): Lista di asset_id da cercare.
Returns:
list[ProductInfo]: Lista di ProductInfo aggregati.
Raises:
Exception: If all wrappers fail to provide results.
"""
all_products = self.wrappers.try_call_all(lambda w: w.get_products(asset_ids))
return aggregate_product_info(all_products)
@@ -78,6 +80,8 @@ class MarketAPIsTool(BaseWrapper, Toolkit):
limit (int): Numero massimo di dati storici da restituire.
Returns:
list[Price]: Lista di Price aggregati.
Raises:
Exception: If all wrappers fail to provide results.
"""
all_prices = self.wrappers.try_call_all(lambda w: w.get_historical_prices(asset_id, limit))
return aggregate_history_prices(all_prices)