Investment research for everyone, anywhere.
—
Commodity market data including energy, metals, agricultural products, and specialized commodity reports. The commodity module provides access to commodity prices and market analysis.
Energy commodity data and specialized energy market reports.
def obb.commodity.short_term_energy_outlook(
provider: str = None,
**kwargs
) -> ResponseObject:
"""
Get short-term energy market outlook data.
Parameters:
- provider: Data provider to use
Returns:
ResponseObject with energy market outlook and forecasts
"""
def obb.commodity.petroleum_status_report(
provider: str = None,
**kwargs
) -> ResponseObject:
"""
Get petroleum industry status report.
Parameters:
- provider: Data provider to use
Returns:
ResponseObject with petroleum industry data and statistics
"""# Commodity module provides access to various commodity markets
obb.commodity.*
# Key commodity capabilities include:
# - Energy commodities (oil, gas, electricity)
# - Precious metals (gold, silver, platinum)
# - Industrial metals (copper, aluminum, steel)
# - Agricultural products (wheat, corn, soybeans)
# - Commodity futures and spot prices
# - Commodity indices and benchmarksfrom openbb import obb
# Get energy market outlook
energy_outlook = obb.commodity.short_term_energy_outlook()
energy_df = energy_outlook.to_dataframe()
# Get petroleum industry report
petroleum_report = obb.commodity.petroleum_status_report()
petro_df = petroleum_report.to_dataframe()# Access various commodity price data
# Analyze commodity market trends and correlations
# Compare different commodity sectorsInstall with Tessl CLI
npx tessl i tessl/pypi-openbb