Etf Sectors
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
EtfSectors | EtfSectorsQueryParams | EtfSectorsData |
Import Statement
from openbb_core.provider.standard_models.etf_sectors import (
EtfSectorsData,
EtfSectorsQueryParams,
)
Parameters
- standard
- fmp
- tmx
symbol: str | list[str]
Symbol to get data for. (ETF) Multiple items allowed for provider(s): fmp, tmx.
symbol: str | list[str]
Symbol to get data for. (ETF) Multiple items allowed for provider(s): fmp, tmx.
symbol: str | list[str]
Symbol to get data for. (ETF) Multiple items allowed for provider(s): fmp, tmx.
use_cache: bool
Default: True
Whether to use a cached request. All ETF data comes from a single JSON file that is updated daily. To bypass, set to False. If True, the data will be cached for 4 hours.
Data
- standard
- fmp
- tmx
symbol: str
Symbol representing the entity requested in the data.
sector: str
Sector of exposure.
weight: float
Sector exposure for the ETF as a percent of total assets.
symbol: str
Symbol representing the entity requested in the data.
sector: str
Sector of exposure.
weight: float
Sector exposure for the ETF as a percent of total assets.
symbol: str
Symbol representing the entity requested in the data.
sector: str
Sector of exposure.
weight: float
Sector exposure for the ETF as a percent of total assets.