yield_curve
Get yield curve data by country and date.
Examples
from openbb import obb
obb.fred.fixedincome.government.yield_curve(provider='fred')
Parameters
- standard
- fred
date: date | str | None | list[date | str | None]
A specific date to get data for. By default is the current data. Multiple items allowed for provider(s): fred.
date: date | str | None | list[date | str | None]
A specific date to get data for. By default is the current data. Multiple items allowed for provider(s): fred.
yield_curve_type: str | None
Default: nominal
Yield curve type. Nominal and Real Rates are available daily, others are monthly. The closest date to the requested date will be returned.
Choices
- nominal
- real
- breakeven
- treasury_minus_fed_funds
- corporate_spot
- corporate_par
use_cache: bool | None
Default: True
When True, the request is served from, and written to, the FRED response cache.
Returns
results: FredYieldCurve
Serializable results.
provider: str | None
Provider name.
warnings: Optional[list[Warning_]]
List of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.
Data
- standard
- fred
date: date | None | str
The date of the data.
maturity: str
Maturity length of the security.
date: date | None | str
The date of the data.
maturity: str
Maturity length of the security.
rate: float | None
The yield of the security at the given maturity, as published by FRED.