Price history for a metal
get_price_historyDaily, weekly, monthly or intraday OHLC history for one metal, oldest first. Gold and silver daily history goes back to 1966. Converts each point at that day's ECB rate when currency is set. Returns at most limit of the most recent points.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "get_price_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | YYYY-MM-DD, used with start. | |
| unit | No | Mass unit to quote per. toz is the troy ounce. Default: the market's own unit (toz for precious metals, lb or mt for base metals). | |
| karat | No | Gold only: price this karat at purity karat/24 (24 is pure gold). | |
| limit | No | Most recent points to return (default 250). | |
| range | No | Window to return, default 1M. Plan limits apply (Free: 30 days of daily bars). | |
| start | No | YYYY-MM-DD. Overrides range. | |
| symbol | Yes | Metal code: XAU, XAG, XPT, XPD, HG, ALI, NI, ZN, PB, JBP, CO, LC, UXA. | |
| currency | No | ISO 4217 code to quote in (default USD). One of USD, EUR, GBP, JPY, CHF, AUD, CAD, CNY, INR, SGD, HKD, NZD, SEK, NOK, DKK, MXN, BRL, ZAR, TRY, PLN, CZK, HUF, RON, ISK, ILS, KRW, IDR, MYR, PHP, THB, AED, SAR. | |
| interval | No | Candle size, default 1d. Intraday needs a paid plan. |