Skip to main content

interest_rates

Get interest rates by country(s) and duration. Most OECD countries publish short-term, a long-term, and immediate rates monthly.

Examples

from openbb import obb
obb.economy.interest_rates(provider='oecd')
# For OECD, duration can be 'immediate', 'short', or 'long'. Default is 'short', which is the 3-month rate. Overnight interbank rate is 'immediate', and 10-year rate is 'long'.
obb.economy.interest_rates(provider='oecd', country='all', duration=immediate, frequency=quarter)
# Multiple countries can be passed in as a list.
obb.economy.interest_rates(duration=long, country='united_kingdom,germany', frequency=monthly, provider='oecd')

Parameters

NameTypeDescriptionDefaultOptional
countryUnion[str, List[str]]The country to get data. Multiple items allowed for provider(s): oecd.united_statesTrue
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[CountryInterestRates]
Serializable results.

provider : Optional[Literal['oecd']]
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.
valuefloatThe interest rate value.
countrystrCountry for which the interest rate is given.