Skip to main content

yield_curve

Get yield curve data by country and date.

Parameters

date: Union[Union[date, str], list[Union[date, str]]]

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.

Optional: True


Returns

results: list[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: Union[date, str]

The date of the data.

maturity: str

Maturity length of the security.