Live spot prices
get_spot_pricesLive spot prices for metals (XAU, XAG, XPT, XPD, HG, ALI, NI, ZN, PB, JBP, CO, LC, UXA) with 24-hour change, high, low and an indicative bid and ask. Quote in another currency, per gram/kilo/tola, or a gold karat with currency, unit and karat. Each quote states its currency and unit.
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 |
|---|---|---|---|
| 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). | |
| symbols | No | Comma-separated metal codes, e.g. "XAU,XAG". Default: all of 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. |