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

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

Returns

OBBject
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

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.