Skip to main content

retail_prices

Get retail prices for common items.

Examples

from openbb import obb
obb.economy.retail_prices(provider='fred')
# The price of eggs in the northeast census region.
obb.economy.retail_prices(item='eggs', region=northeast, provider='fred')
# The percentage change in price, from one-year ago, of various meats, US City Average.
obb.economy.retail_prices(item='meats', transform=pc1, provider='fred')

Parameters

NameTypeDescriptionDefaultOptional
itemstrThe item or basket of items to query.NoneTrue
countrystrThe country to get data.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[RetailPrices]
Serializable results.

provider : Optional[Literal['fred']]
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.
symbolstrSymbol representing the entity requested in the data.
countrystr
descriptionstrDescription of the item.
valuefloatPrice, or change in price, per unit.