Skip to main content
Version: v5

spot

Commodity Spot Prices.

Examples​

from openbb import obb
obb.fred.commodity.price.spot(provider='fred')

Parameters​

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.


Returns​

results: FredCommoditySpotPrices

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​

date: date | str
The date of the data.

symbol: str | None
Symbol representing the entity requested in the data.

commodity: str | None
Commodity name.

price: float
Price of the commodity.

unit: str | None
Unit of the commodity price.