Fred Consumer Price Index
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
FredConsumerPriceIndex | FredConsumerPriceIndexQueryParams | FredConsumerPriceIndexData |
Import Statement
from openbb_core.provider.standard_models. import (
FredConsumerPriceIndexData,
FredConsumerPriceIndexQueryParams,
)
Parameters
- standard
- fred
country: str | None | list[str | None]
Default: united_states
The country to get data. Multiple items allowed for provider(s): fred.
Choices
- australia
- austria
- belgium
- brazil
- bulgaria
- canada
- chile
- china
- croatia
- cyprus
- czech_republic
- denmark
- estonia
- finland
- france
- germany
- greece
- hungary
- iceland
- india
- indonesia
- ireland
- israel
- italy
- japan
- korea
- latvia
- lithuania
- luxembourg
- malta
- mexico
- netherlands
- new_zealand
- norway
- poland
- portugal
- romania
- russian_federation
- slovak_republic
- slovakia
- slovenia
- south_africa
- spain
- sweden
- switzerland
- turkey
- united_kingdom
- united_states
transform: str | None
Default: yoy
Transformation of the CPI data.
Choices
- index
- yoy
- period
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.
country: str | None | list[str | None]
Default: united_states
The country to get data. Multiple items allowed for provider(s): fred.
Choices
- australia
- austria
- belgium
- brazil
- bulgaria
- canada
- chile
- china
- croatia
- cyprus
- czech_republic
- denmark
- estonia
- finland
- france
- germany
- greece
- hungary
- iceland
- india
- indonesia
- ireland
- israel
- italy
- japan
- korea
- latvia
- lithuania
- luxembourg
- malta
- mexico
- netherlands
- new_zealand
- norway
- poland
- portugal
- romania
- russian_federation
- slovak_republic
- slovakia
- slovenia
- south_africa
- spain
- sweden
- switzerland
- turkey
- united_kingdom
- united_states
transform: str | None
Default: yoy
Transformation of the CPI data.
Choices
- index
- yoy
- period
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.
use_cache: bool | None
Default: True
When True, the request is served from, and written to, the FRED response cache.
Data
- standard
- fred
date: date | str
The date of the data.
country: str
None
value: float
CPI index value or period change.
date: date | str
The date of the data.
country: str
None
value: float
CPI index value or period change.