Retail Prices
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
RetailPrices | RetailPricesQueryParams | RetailPricesData |
Import Statement
from openbb_core.provider.standard_models.retail_prices import (
RetailPricesData,
RetailPricesQueryParams,
)
Parameters
- standard
- fred
item: str
The item or basket of items to query.
country: str
Default: united_states
The country to get data.
start_date: date | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | str
End date of the data, in YYYY-MM-DD format.
item: Literal['beverages', 'cereals', 'dairy', 'fuel', 'produce', 'meats', 'bacon', 'bananas', 'beans', 'beef', 'beer', 'bread', 'butter', 'cheese', 'chicken', 'chops', 'coffee', 'cookies', 'corn', 'diesel', 'eggs', 'electricity', 'flour', 'gas', 'gasoline', 'grapefruit', 'ground_beef', 'ham', 'ice_cream', 'lemons', 'lettuce', 'malt_beverages', 'milk', 'oil', 'orange_juice', 'oranges', 'pork', 'potato_chips', 'potatoes', 'rice', 'soft_drinks', 'spaghetti', 'steak', 'strawberries', 'sugar', 'tomatoes', 'unleaded', 'usda', 'vodka', 'wine', 'yogurt']
Default: fuel
The item or basket of items to query.
country: Literal['united_states']
Default: united_states
The country to get data.
start_date: date | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | str
End date of the data, in YYYY-MM-DD format.
region: Literal['all_city', 'northeast', 'midwest', 'south', 'west']
Default: all_city
The region to get average price levels for.
frequency: Literal['annual', 'quarter', 'monthly']
Default: monthly
The frequency of the data.
transform: Literal['chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log']
Description
Transformation type
None = No transformation
chg = Change
ch1 = Change from Year Ago
pch = Percent Change
pc1 = Percent Change from Year Ago
pca = Compounded Annual Rate of Change
cch = Continuously Compounded Rate of Change
cca = Continuously Compounded Annual Rate of Change
log = Natural Log
Data
- standard
- fred
date: date | str
The date of the data.
symbol: str
Symbol representing the entity requested in the data.
country: str
description: str
Description of the item.
value: float
Price, or change in price, per unit.
date: date | str
The date of the data.
symbol: str
Symbol representing the entity requested in the data.
country: str
description: str
Description of the item.
value: float
Price, or change in price, per unit.