Three calls return live futures prices for gold (XAU), silver (XAG), copper (HG), platinum (XPT) and palladium (XPD), and for gold on the Shanghai market. Each answer names its delivery month. Every plan includes them; on Free prices are 15 minutes late, the same as spot.
The three calls
Each call is a GET over HTTPS and returns JSON. Send your key in the Authorization: Bearer header.
| Call | What it returns |
|---|---|
GET /v1/futures/{symbol} | The most traded month, with bid, ask and the day's range |
GET /v1/futures/{symbol}?month=YYYY-MM | One named month, such as 2027-04 |
GET /v1/futures/{symbol}/months | Every month we follow, with the most traded one marked |
Get the most traded month
This request returns the gold month with the most trading. Use XAG for silver, HG for copper, XPT for platinum or XPD for palladium.
Calls without a key get gold, platinum and palladium, 15 minutes late. Silver and copper need a key, free or paid.
curl "https://api.goldprice.dev/v1/futures/XAU" \ -H "Authorization: Bearer $GOLDPRICE_API_KEY"const res = await fetch("https://api.goldprice.dev/v1/futures/XAU", { headers: { Authorization: `Bearer ${process.env.GOLDPRICE_API_KEY}` },})const data = await res.json()if (!res.ok) throw new Error(data.error)import os, requestsres = requests.get( "https://api.goldprice.dev/v1/futures/XAU", headers={"Authorization": f"Bearer {os.environ['GOLDPRICE_API_KEY']}"}, timeout=10,)res.raise_for_status()data = res.json()Parameters
| Name | Where | Required | Meaning |
|---|---|---|---|
symbol | path | Yes | XAU, XAG, HG, XPT or XPD. The words gold, silver, copper, platinum and palladium also work |
month | query | No | A delivery month as YYYY-MM. Leave it out for the most traded month |
exchange | query | No | SHFE for Shanghai gold. COMEX (XAU, XAG, HG) and NYMEX (XPT, XPD) also work. Leave it out for COMEX or NYMEX; an empty exchange= is a 422 |
The answer
Prices are numbers, with two decimals for gold, platinum and palladium, three for silver and four for copper. price is the middle of the best bid and best ask. timestamp is the time we received the price, in UTC. The example below was made on 26 November 2026 at 00:41 UTC and is not a current price.
{ "symbol": "XAU", "exchange": "COMEX", "contract_month": "2027-02", "most_traded": true, "price": 3600.95, "bid": 3600.80, "ask": 3601.10, "day_high": 3619.80, "day_low": 3595.60, "currency": "USD", "unit": "troy_ounce", "timestamp": "2026-11-26T00:41:10Z", "delayed": false}| Field | Meaning |
|---|---|
symbol | Metal code: XAU, XAG, HG, XPT or XPD |
exchange | The exchange: COMEX, NYMEX, or SHFE for Shanghai gold |
contract_month | The delivery month of the contract, as YYYY-MM |
most_traded | True when this is the month with the most trading |
price | The middle of the best bid and best ask |
bid, ask | Best bid and best ask; null when the market shows none |
day_high, day_low | Highest and lowest price of the trading day; null when there is none yet |
currency | Currency of the price: USD, or CNY on SHFE |
unit | troy_ounce for gold, silver, platinum and palladium, pound for copper, gram on SHFE |
timestamp | When we received the price (UTC) |
delayed | True when our live feed is down: the price comes from a backup that runs late, or cannot be confirmed while the market trades |
delayed_minutes | 15 on keyless and Free answers: the price is 15 minutes behind live. Absent on paid answers. |
When the market is closed
The answer is still 200 with the last price. Three fields are added: state set to closed, a message, and next_open, the time the market opens again in UTC. COMEX and NYMEX metals trade nearly around the clock on weekdays. Shanghai gold trades in Beijing day and night sessions.
| Field | Meaning |
|---|---|
state, message, next_open | Only while the market is closed: closed, with message and next_open (UTC) |
Get a named month
Add month to ask for one delivery month. The answer has the same fields, with most_traded false unless you asked for the most traded month.
curl "https://api.goldprice.dev/v1/futures/XAU?month=2027-04" \ -H "Authorization: Bearer $GOLDPRICE_API_KEY"List the months
This call lists every month that has a price for one metal, oldest first, with the most traded month marked. The answer carries symbol, exchange, currency and unit once, then months: each month with contract_month, most_traded, price, bid, ask, day_high, day_low, timestamp and delayed. When the market is closed, the answer also carries state, message and next_open.
We follow about a year ahead. Gold: February, April, June, August, October and December plus the two nearest months. Silver and copper: March, May, July, September and December. Platinum: January, April, July and October. Palladium: March, June, September and December.
curl "https://api.goldprice.dev/v1/futures/XAU/months" \ -H "Authorization: Bearer $GOLDPRICE_API_KEY"Shanghai gold
Add exchange=SHFE to any futures call for gold on the Shanghai Futures Exchange, in yuan per gram. Only gold has a Shanghai market. The Shanghai exchange price of physical gold is a spot symbol: GET /v1/prices?symbol=XAU-CNY-SGE, also in yuan per gram, with no dollar conversion.
curl "https://api.goldprice.dev/v1/futures/XAU?exchange=SHFE" \ -H "Authorization: Bearer $GOLDPRICE_API_KEY"curl "https://api.goldprice.dev/v1/prices?symbol=XAU-CNY-SGE" \ -H "Authorization: Bearer $GOLDPRICE_API_KEY"Errors
Errors return JSON with an error code. A month or exchange the API cannot read is a 422 with the field named in details.
| Status | error | When |
|---|---|---|
| 400 | invalid_symbol | The symbol is not one we serve. hint lists the valid ones |
| 401 | invalid_api_key | The API key is not valid or was revoked. A call with no key is served as a call without a key |
| 403 | plan_gated | Your plan does not include this metal. Calls without a key get gold, platinum and palladium |
| 404 | not_found | No price for the month you asked for (message lists the months that have one), or no recent price at all |
| 422 | validation_error | month is not YYYY-MM, or exchange is not valid for the symbol |
| 429 | rate_limit_exceeded | Your plan's per minute limit is used up |
| 429 | quota_exceeded | Your plan's monthly requests are used up |
| 429 | rate_limited | A call without a key went over 100 calls an hour from one address |
Plans and limits
Futures follow the same rule as spot. Free gets prices 15 minutes late; Basic, Plus, and Pro get them live. Each call counts as one request against your plan's monthly and per minute limits. See pricing.
Questions
Which month does /v1/futures/{symbol} return?
The month with the most trading at that moment. The answer names it in contract_month and sets most_traded to true. When trading moves to the next month, the call follows it.
How do I get another month?
Add month=YYYY-MM, for example ?month=2027-04. Call /v1/futures/{symbol}/months first to see which months we follow.
What does delayed mean?
It is true when our live feed is down. The price then comes from a backup feed that runs late, or it cannot be confirmed while the market trades. It goes back to false when the live feed returns.
Are futures the same as spot?
No. A futures price is for delivery in a named month, so it usually sits above spot for gold and silver. Spot prices stay at /v1/prices and /v1/spot/{symbol}.
How do I get Shanghai gold?
Add exchange=SHFE to a gold futures call for the Shanghai futures, or call /v1/prices?symbol=XAU-CNY-SGE for the Shanghai exchange price. Both are in yuan per gram.
Where is the daily settlement?
/v1/settlements still returns the daily settlement on the plans that include it. The calls on this page return the price during the trading day.