Skip to main content

yield_curve

Get yield curve data by country and date.

Parameters

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): ecb, econdb, federal_reserve, fmp, fred.


Returns

results: YieldCurve

Serializable results.

provider: Optional[Literal['ecb', 'econdb', 'federal_reserve', 'fmp', 'fred']]

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data

date: date | None | str
The date of the data.

maturity: str
Maturity length of the security.