diff --git a/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py b/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py index 1a13976a541..fd04edd987f 100644 --- a/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py +++ b/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py @@ -22,7 +22,7 @@ class QuandlCotSearchData(CotSearchData): """Quandl CFTC Commitment of Traders Reports Search data.""" -class QuandlCotSearchFetcher(Fetcher[CotSearchQueryParams, QuandlCotSearchData]): +class QuandlCotSearchFetcher(Fetcher[CotSearchQueryParams, List[QuandlCotSearchData]]): """Quandl CFTC Commitment of Traders Reports Search Fetcher.""" @staticmethod @@ -53,5 +53,5 @@ class QuandlCotSearchFetcher(Fetcher[CotSearchQueryParams, QuandlCotSearchData]) @staticmethod def transform_data( data: List[Dict], - ) -> QuandlCotSearchData: - return QuandlCotSearchData.parse_obj(data[0]) + ) -> List[QuandlCotSearchData]: + return [QuandlCotSearchData(**d) for d in data]