Skip to main content

tips_yields

Get current Treasury inflation-protected securities yields.

Examples

from openbb import obb
obb.fixedincome.government.tips_yields(provider='fred')
obb.fixedincome.government.tips_yields(maturity=10, provider='fred')

Parameters

NameTypeDescriptionDefaultOptional
start_dateUnion[date, str]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[date, str]End date of the data, in YYYY-MM-DD format.NoneTrue

Returns

OBBject
results : List[TipsYields]
Serializable results.

provider : Optional[Literal['fred']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
dateUnion[date, str]The date of the data.
symbolstrSymbol representing the entity requested in the data.
duedateThe due date (maturation date) of the security.
namestrThe name of the security.
valuefloatThe yield value.