Summarize Price History
summarize_price_historySummarize recent Grand Exchange prices for a RuneScape item, including min, max, average, change, and daily volume over a 7-90 day period.
Instructions
Summarize one item's recent Grand Exchange prices: min, max, average, change, and average daily volume. Pass exactly one of itemId or name, and optional days from 7 to 90 (default 30). Use get_item_graph for the full daily series.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Size of the trailing window in days (7-90, default 30) | |
| name | No | Item name (provide itemId or name) | |
| itemId | No | Grand Exchange item ID (provide itemId or name) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name supplied by the caller, when given | |
| itemId | Yes | Grand Exchange item ID | |
| avgPrice | Yes | Average price in the window, in coins | |
| maxPrice | Yes | Highest price in the window, in coins | |
| minPrice | Yes | Lowest price in the window, in coins | |
| changeAbs | Yes | latestPrice minus oldestPriceInWindow | |
| changePct | Yes | Percent change across the window | |
| windowDays | Yes | Trailing window actually summarized | |
| latestPrice | Yes | Newest price in the window, in coins | |
| sampleCount | Yes | Daily samples inside the window | |
| avgDailyVolume | No | Average daily volume, when the source provided it | |
| oldestPriceInWindow | Yes | Oldest price in the window, in coins |