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

start_date: Union[date, str]

Start date of the data, in YYYY-MM-DD format.

Optional: True


end_date: Union[date, str]

End date of the data, in YYYY-MM-DD format.

Optional: True

Data

date: Union[date, str]

The date of the data.

symbol: str

Symbol representing the entity requested in the data.

commodity: str

Commodity name.

price: float

Price of the commodity.

unit: str

Unit of the commodity price.