Skip to main content

Yield Curve


Implementation details

Class names

Model nameParameters classData class
YieldCurveYieldCurveQueryParamsYieldCurveData

Import Statement

from openbb_core.provider.standard_models.yield_curve import (
YieldCurveData,
YieldCurveQueryParams,
)

Parameters

NameTypeDescriptionDefaultOptional
dateUnion[Union[None, date, str], List[Union[None, 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.NoneTrue

Data

NameTypeDescription
dateUnion[date, str]The date of the data.
maturitystrMaturity length of the security.
ratefloatThe yield as a normalized percent (0.05 is 5%)