opa_get_history
Retrieve historical commodity prices including high, low, average, and change over day, week, month, or year periods to analyze price trends.
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 |