Get Latest
get_latestGet the latest precious and base metal spot prices (gold, silver, platinum, palladium, copper, etc.). Prices are per troy ounce. Optionally specify base currency and metal symbols.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"_apiKey": "your-metals-api-key"
},
"name": "get_latest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base currency (default "USD"). E.g., "EUR", "GBP" | |
| _apiKey | Yes | Metals-API key | |
| symbols | No | Comma-separated metal symbols to filter (e.g., "XAU,XAG,XPT"). XAU=gold, XAG=silver, XPT=platinum, XPD=palladium, XCU=copper |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base currency code (e.g., USD, EUR) | |
| date | Yes | Date of the latest prices in YYYY-MM-DD format | |
| rates | Yes | Metal spot prices per troy ounce, keyed by symbol (e.g., XAU, XAG) | |
| timestamp | Yes | Unix timestamp of when prices were captured |