Files
OpenBB/openbb_providers/openbb_provider/model/data/esg_sector.py
2023-07-05 11:11:49 +01:00

44 lines
901 B
Python

"""ESG Sector data model."""
from openbb_provider.model.abstract.data import Data, QueryParams
class ESGSectorQueryParams(QueryParams):
"""ESG sector query model.
Parameter
---------
year : int
The year to get ESG information for
"""
year: int
class ESGSectorData(Data):
"""ESG Sector data.
Returns
-------
year : int
The year of the ESG Sector.
sector : str
The sector of the ESG Sector.
environmental_score : float
The environmental score of the ESG Sector.
social_score : float
The social score of the ESG Sector.
governance_score : float
The governance score of the ESG Sector.
esg_score : float
The ESG score of the ESG Sector.
"""
year: int
sector: str
environmental_score: float
social_score: float
governance_score: float
esg_score: float