WIP: Fix Aggregazione market Product #67

Draft
Simo93-rgb wants to merge 13 commits from 62-aggregazione-market-product-non-corretta into main
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 15b279faa1 - Show all commits

View File

@@ -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

View File

@@ -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