Skip to main content
Version: v5

Imf Consumer Price Index


Implementation details​

Class names​

Model nameParameters classData class
ImfConsumerPriceIndexImfConsumerPriceIndexQueryParamsImfConsumerPriceIndexData

Import Statement​

from openbb_core.provider.standard_models. import (
ImfConsumerPriceIndexData,
ImfConsumerPriceIndexQueryParams,
)

Parameters​

country: str | None | list[str | None]
Default: united_states
The country to get data. Multiple items allowed for provider(s): imf.

transform: str | None
Default: yoy
Transformation of the CPI data.

Choices
  • index
  • period
  • yoy
  • ref_index
  • ref_period
  • ref_yoy
  • weight
  • weight_percent

frequency: str | None
Default: monthly
The frequency of the data.

harmonized: bool | None
Default: False
If true, returns harmonized data.

start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.

end_date: date | None | str
End date of the data, in YYYY-MM-DD format.

Data​

date: date | str
The date of the data.

country: str
None

value: float
CPI index value or period change.