fix typos
This commit is contained in:
@@ -23,7 +23,7 @@ class ProductInfo(BaseModel):
|
|||||||
products (dict[str, list[ProductInfo]]): Map provider -> list of ProductInfo
|
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".
|
filter_currency (str): If set, only products with this currency are considered. Defaults to "USD".
|
||||||
Returns:
|
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
|
# Costruzione mappa id -> lista di ProductInfo + lista di provider
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ class TestMarketDataAggregator:
|
|||||||
"Provider3": [self.__product("BTC", 49900.0, 900.0, "USD")],
|
"Provider3": [self.__product("BTC", 49900.0, 900.0, "USD")],
|
||||||
}
|
}
|
||||||
|
|
||||||
# aggregate_single_asset returns a single ProductInfo, not a list
|
|
||||||
aggregated = ProductInfo.aggregate(products)
|
aggregated = ProductInfo.aggregate(products)
|
||||||
assert len(aggregated) == 1
|
assert len(aggregated) == 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user