ycrv
- Model
- Chart
Gets yield curve data from FRED
Source Code: [link]
openbb.economy.ycrv(date: datetime.datetime = None)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
date | datetime | Date to get curve for. If None, gets most recent date | None | True |
Returns
Type | Description |
---|---|
Tuple[pd.DataFrame, datetime] | Dataframe of yields and maturities, Date for which the yield curve is obtained |
Examples
from openbb_terminal.sdk import openbb
ycrv_df = openbb.economy.ycrv()
Display yield curve based on US Treasury rates for a specified date.
Source Code: [link]
openbb.economy.ycrv_chart(date: datetime.datetime = None, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, raw: bool = False, export: str = "")
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
date | datetime | Date to get yield curve for | None | True |
external_axes | Optional[List[plt.Axes]] | External axes to plot data on | None | True |
Returns
This function does not return anything