Skip to content

Commit

Permalink
rename some fetcher vars
Browse files Browse the repository at this point in the history
  • Loading branch information
montezdesousa committed Aug 4, 2023
1 parent 8f0b748 commit afbd4a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions openbb_sdk/sdk/provider/openbb_provider/abstract/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def extract_data(

@staticmethod
def transform_data(data: ReturnType) -> GenericDataType:
"""Transform the provider-specific data to the standard data."""
"""Transform the provider-specific data."""
raise NotImplementedError

@classmethod
Expand All @@ -48,13 +48,13 @@ def fetch_data(
credentials: Optional[Dict[str, str]] = None,
**kwargs
) -> GenericDataType:
"""Fetch data from a provider by using the OpenBB standard."""
provider_query = cls.transform_query(params=params)
provider_data = cls.extract_data(
query=provider_query, credentials=credentials, **kwargs
"""Fetch data from a provider."""
query = cls.transform_query(params=params)
data = cls.extract_data(
query=query, credentials=credentials, **kwargs
)
data = cls.transform_data(data=provider_data)
return data
results = cls.transform_data(data=data)
return results

@property
def query_params_type(self):
Expand Down

0 comments on commit afbd4a6

Please sign in to comment.