Skip to main content

Commodity Spot Prices


Implementation details

Class names

Model nameParameters classData class
CommoditySpotPricesCommoditySpotPricesQueryParamsCommoditySpotPricesData

Import Statement

from openbb_core.provider.standard_models.commodity_spot_prices import (
CommoditySpotPricesData,
CommoditySpotPricesQueryParams,
)

Parameters

NameTypeDescriptionDefaultOptional
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

Data

NameTypeDescription
dateUnion[date, str]The date of the data.
symbolstrSymbol representing the entity requested in the data.
commoditystrCommodity name.
pricefloatPrice of the commodity.
unitstrUnit of the commodity price.