Skip to main content

spot_rates

Spot Rates.

The spot rates for any maturity is the yield on a bond that provides a single payment at that maturity. This is a zero coupon bond. Because each spot rate pertains to a single cashflow, it is the relevant interest rate concept for discounting a pension liability at the same maturity.

Examples

from openbb import obb
obb.fixedincome.corporate.spot_rates(provider='fred')
obb.fixedincome.corporate.spot_rates(maturity='10,20,30,50', 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
maturityUnion[Union[float, str], List[Union[float, str]]]Maturities in years. Multiple items allowed for provider(s): fred.10.0True
categoryUnion[str, List[str]]Rate category. Options: spot_rate, par_yield. Multiple items allowed for provider(s): fred.spot_rateTrue

Returns

OBBject
results : List[SpotRate]
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.
ratefloatSpot Rate.