Skip to main content

treasury

Gets interest rates data from selected countries (3 month and 10 year)

Source Code: [link]

openbb.fixedincome.treasury(short_term: Optional[list] = None, long_term: Optional[list] = None, forecast: bool = False, start_date: Optional[str] = None, end_date: Optional[str] = None)

Parameters

NameTypeDescriptionDefaultOptional
short_termlistCountries you wish to plot the 3-month interest rate forNoneTrue
long_termlistCountries you wish to plot the 10-year interest rate forNoneTrue
forecastboolIf True, plot forecasts for short term interest ratesFalseTrue
start_datestrStart date of data, in YYYY-MM-DD formatNoneTrue
end_datestrEnd date of data, in YYYY-MM-DD formatNoneTrue

Returns

This function does not return anything