sector
- Model
- Chart
Get fund, category, index sector breakdown
Source Code: [link]
openbb.funds.sector(loaded_funds: mstarpy.funds.Funds, asset_type: str = "equity")
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| loaded_funds | mstarpy.funds | class mstarpy.Funds instantiated with selected funds | None | False |
| asset_type | str | can be equity or fixed income | equity | True |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | Dataframe containing sector breakdown |
Display fund, category, index sector breakdown
Source Code: [link]
openbb.funds.sector_chart(loaded_funds: mstarpy.funds.Funds, asset_type: str = "equity", external_axes: bool = False)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| loaded_funds | mstarpy.funds | class mstarpy.Funds instantiated with selected funds | None | False |
| asset_type | str | can be equity or fixed income | equity | True |
| external_axes | bool | Whether to return the figure object or not, by default False | False | True |
Returns
| Type | Description |
|---|---|
| plotly.graph_objects.Figure | Plotly figure object |
Examples
from openbb_terminal.sdk import openbb
f = openbb.funds.load("Vanguard", "US")
openbb.funds.sector_chart(f)