sectors
ETF Sector weighting.
Example
from openbb import obb
obb.etf.sectors(symbol="AAPL")
Parameters
- Standard
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| symbol | Union[str, List[str]] | Symbol to get data for. (ETF) | False | |
| provider | Literal['fmp'] | The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fmp' if there is no default. | "fmp" | True |
Returns
OBBject
results : List[EtfSectors]
Serializable results.
provider : Optional[Literal['fmp']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
metadata: Optional[Metadata]
Metadata info about the command execution.
Data
- Standard
| Name | Type | Description |
|---|---|---|
| sector | str | Sector of exposure. |
| weight | float | Exposure of the ETF to the sector in normalized percentage points. |