mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-09 10:51:57 +00:00
44 lines
901 B
Python
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
|