Spot metal prices
get_spot_pricesCurrent and previous-session spot prices for gold, silver, platinum, palladium, copper and nickel, in any supported currency and per troy ounce or gram.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_spot_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | A currency code from the live catalog at /api/currencies (ISO 4217 fiat plus BTC and the metal codes). Defaults to USD. | |
| unit | No | Price per troy ounce or per gram. Defaults to troy_oz. | |
| metals | No | Metal symbols to include (xau gold, xag silver, xpt platinum, xpd palladium, xcu copper, ni nickel). Omit for all six; Goldback is not a spot metal. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | UTC source update instant. | |
| base | Yes | Resolved uppercase currency code. | |
| date | Yes | Market or session date. | |
| unit | Yes | Shared price denominator for every returned metal. | |
| metals | Yes | Requested spot symbols only; Goldback is not a spot metal. |