diff --git a/src/app/api/core/markets.py b/src/app/api/core/markets.py index a1b1b79..e330c58 100644 --- a/src/app/api/core/markets.py +++ b/src/app/api/core/markets.py @@ -23,7 +23,7 @@ class ProductInfo(BaseModel): products (dict[str, list[ProductInfo]]): Map provider -> list of ProductInfo filter_currency (str): If set, only products with this currency are considered. Defaults to "USD". Returns: - dict[ProductInfo, str]: Map of aggregated ProductInfo by symbol + list[ProductInfo]: List of ProductInfo aggregated by symbol """ # Costruzione mappa id -> lista di ProductInfo + lista di provider diff --git a/tests/utils/test_market_aggregator.py b/tests/utils/test_market_aggregator.py index 087711a..3befe78 100644 --- a/tests/utils/test_market_aggregator.py +++ b/tests/utils/test_market_aggregator.py @@ -33,7 +33,6 @@ class TestMarketDataAggregator: "Provider3": [self.__product("BTC", 49900.0, 900.0, "USD")], } - # aggregate_single_asset returns a single ProductInfo, not a list aggregated = ProductInfo.aggregate(products) assert len(aggregated) == 1