Gold & commodities: One commodity over time
gold_getCommodityHistoryOne commodity over time
One series between start and end. Daily series: at most 366 days (default: the last 30). Monthly series: YYYY-MM or YYYY-MM-DD, at most 600 months (default: the last 24).
GET /v1/gold/commodity-prices/{code} on Gold & commodities (SBX-GOLD). Costs 1 credit per call.
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": {
"code": "<code>"
},
"name": "gold_getCommodityHistory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | YYYY-MM-DD (monthly series: also YYYY-MM). Default: today. | |
| code | Yes | A code from /gold/commodities, e.g. brent. | |
| start | No | YYYY-MM-DD (monthly series: also YYYY-MM). |