or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

commodity.mdcrypto.mdcurrency.mdderivatives.mdeconomy.mdequity.mdetf-index.mdfixedincome.mdindex.mdnews.mdregulatory.mdtechnical.md

commodity.mddocs/

0

# Commodity Markets

1

2

Commodity market data including energy, metals, agricultural products, and specialized commodity reports. The commodity module provides access to commodity prices and market analysis.

3

4

## Capabilities

5

6

### Energy Market Data

7

8

Energy commodity data and specialized energy market reports.

9

10

```python { .api }

11

def obb.commodity.short_term_energy_outlook(

12

provider: str = None,

13

**kwargs

14

) -> ResponseObject:

15

"""

16

Get short-term energy market outlook data.

17

18

Parameters:

19

- provider: Data provider to use

20

21

Returns:

22

ResponseObject with energy market outlook and forecasts

23

"""

24

25

def obb.commodity.petroleum_status_report(

26

provider: str = None,

27

**kwargs

28

) -> ResponseObject:

29

"""

30

Get petroleum industry status report.

31

32

Parameters:

33

- provider: Data provider to use

34

35

Returns:

36

ResponseObject with petroleum industry data and statistics

37

"""

38

```

39

40

### General Commodity Data

41

42

```python { .api }

43

# Commodity module provides access to various commodity markets

44

obb.commodity.*

45

46

# Key commodity capabilities include:

47

# - Energy commodities (oil, gas, electricity)

48

# - Precious metals (gold, silver, platinum)

49

# - Industrial metals (copper, aluminum, steel)

50

# - Agricultural products (wheat, corn, soybeans)

51

# - Commodity futures and spot prices

52

# - Commodity indices and benchmarks

53

```

54

55

## Usage Examples

56

57

### Energy Market Analysis

58

59

```python

60

from openbb import obb

61

62

# Get energy market outlook

63

energy_outlook = obb.commodity.short_term_energy_outlook()

64

energy_df = energy_outlook.to_dataframe()

65

66

# Get petroleum industry report

67

petroleum_report = obb.commodity.petroleum_status_report()

68

petro_df = petroleum_report.to_dataframe()

69

```

70

71

### Commodity Data Workflow

72

73

```python

74

# Access various commodity price data

75

# Analyze commodity market trends and correlations

76

# Compare different commodity sectors

77

```