Skip to main content

spot

The spot rate for any maturity is the yield on a bond that provides

Source Code: [link]

openbb.fixedincome.spot(maturity: List = ['10y'], category: List = ['spot_rate'], start_date: Optional[str] = None, end_date: Optional[str] = None)

Parameters

NameTypeDescriptionDefaultOptional
maturitystrThe maturity you want to see (ranging from '1y' to '100y' in interval of 0.5, e.g. '50.5y')['10y']True
categorylistThe category you want to see ('par_yield' and/or 'spot_rate')['spot_rate']True
descriptionboolWhether you wish to obtain a description of the data.NoneTrue
start_dateOptional[str]Start date, formatted YYYY-MM-DDNoneTrue
end_dateOptional[str]End date, formatted YYYY-MM-DDNoneTrue

Returns

This function does not return anything