curve
- Model
- Chart
Get curve futures [Source: Yahoo Finance]
Source Code: [link]
openbb.futures.curve(symbol: str = "", date: Optional[str] = "")
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | symbol to get forward curve | True | |
date | str | optionally include historical price for each contract | True |
Returns
Type | Description |
---|---|
pd.DataFrame | Dictionary with sector weightings allocation |
Display curve futures [Source: Yahoo Finance]
Source Code: [link]
openbb.futures.curve_chart(symbol: str, date: Optional[str] = "", raw: bool = False, export: str = "", sheet_name: Optional[str] = None, external_axes: bool = False)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Curve future symbol to display | None | False |
date | str | Optionally include historical futures prices for each contract | True | |
raw | bool | Display futures prices in raw format | False | True |
sheet_name | str | Optionally specify the name of the sheet the data is exported to. | None | True |
export | str | Type of format to export data | True | |
external_axes | bool | Whether to return the figure object or not, by default False | False | True |
Returns
This function does not return anything