Skip to main content

spot

Commodity Spot Prices.

Examples

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

Parameters

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.


Returns

results: list[CommoditySpotPrices]

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

date: 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.