opa_get_history
Retrieve historical price data for oil, gas, and 40+ energy commodities across day, week, month, or year periods. Access high, low, average prices and change metrics to analyze commodity trends and market performance.
Instructions
Get historical price data for a commodity over a time period. Use when the user asks about price trends, historical prices, or how a commodity has performed over time. Returns high, low, average, change, and data point count. Periods: day (24h), week (7d), month (30d), year (365d).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commodity | Yes | Commodity name or code (e.g., 'brent', 'WTI_USD') | |
| period | No | Time period: day, week, month, or year (default: month) | month |