Gold price API

Real-time gold price API (XAUUSD)

Live gold bid/ask with millisecond timestamps and historical candles from one minute to daily, for trading bots, backtests and AI agents. Every price tells you how fresh it is. Pay per request, or choose an optional monthly plan.

Live XAUUSD quotes

Bid, ask, spread, tick time in UTC and the age of the price.

Historical candles

OHLC from one-second S1 bars to D1. Forming bars are flagged.

Tick history

Every XAUUSD bid and ask change, timestamped to the millisecond, for about the last six months.

Honest data

Gaps from closures or missing data are reported, never filled in.

Built for AI

The same data as MCP tools for Claude, Cursor and other assistants.

Get the gold price in one request

curl -H "X-API-Key: $TICKFEED_KEY" https://api.tickfeed.pro/v1/price/XAUUSD

A real response, captured just after the market opened on Sunday 18 October 2026:

{
  "symbol": "XAUUSD",
  "bid": 4180.9, "ask": 4181.01,
  "spread": 0.11, "spread_points": 11,
  "tick_time": "2026-10-18T23:39:46.717Z",
  "age_seconds": 0.568,
  "freshness": "fresh",
  "market_open": true,
  "stale_after_seconds": 120
}

Python

import requests

r = requests.get("https://api.tickfeed.pro/v1/price/XAUUSD", headers={"X-API-Key": KEY})
price = r.json()
if price["freshness"] == "fresh":
    print("Gold:", price["bid"], price["ask"])

Historical gold candles

curl -H "X-API-Key: $TICKFEED_KEY" \
  "https://api.tickfeed.pro/v1/candles/XAUUSD?timeframe=D1&limit=2"

Real response (trimmed). The newest daily candle is still forming:

"candles": [
  {"time": "2026-10-15T21:00:00Z", "open": 4171.41, "high": 4199.06, "low": 4147.19,
   "close": 4165.76, "tick_volume": 670551, "spread_points": 5, "complete": true},
  {"time": "2026-10-18T21:00:00Z", "open": 4164.46, "high": 4185.64, "low": 4164.04,
   "close": 4180.84, "tick_volume": 18874, "spread_points": 5, "complete": false}
]

How our candles work

History available

TimeframeXAUUSD history fromDepth
M128 Sep 20262 months
M508 Jul 20265 months
M1511 Dec 202512 months
M3007 Feb 202522 months
H101 Jun 20233.5 years
H420 Mar 20233.7 years
D119 Mar 20233.7 years

Updated automatically from our stored data. Every pair has the same timeframes; /v1/symbols (free) returns history_from for each one, so your code can check depth before a backtest.

Pricing

Latest price (bid/ask)$0.002
Candles$0.002 per 100 bars
Gap report$0.002
Ticks$0.002 per 1,000 ticks
Symbols, usage, healthFree
1,000 price quotes$2.00
Free credit for new accounts$10

Also billed in GBP or EUR at the same numbers. Only successful requests are charged.

Gold trading hours

Sunday 18:00 to Friday 17:00 New York time, with a daily break from 17:00 to 18:00. The API labels prices from closures as market_closed so a bot never mistakes them for live prices.

See whether gold is trading right now →

Frequently asked questions

Is there a real-time gold price API?

Yes. TickFeed's /v1/price/XAUUSD returns the latest gold bid and ask in US dollars with a millisecond timestamp, the spread and a freshness label, so your code knows whether the price is live or from before a market closure.

How much does the gold price API cost?

Each price request costs $0.002 from a prepaid balance (1,000 requests = $2). Candles cost $0.002 per 100 bars. Pay as you go needs no subscription; top-ups start at $5. Optional monthly plans are also available: Developer ($29 a month, 50,000 billing units) and Pro ($149 a month, 375,000 billing units).

Can I get historical gold prices?

Yes. /v1/candles/XAUUSD returns OHLC candles at S1, S5, S15, S30, M1, M5, M15, M30, H1, H4 and D1, up to 5,000 bars per request, with pagination for longer ranges. Unfinished bars are flagged and gaps are never filled.

What does XAUUSD mean?

XAUUSD is the standard symbol for the price of one troy ounce of gold in US dollars (XAU is the ISO code for gold).

When is the gold price updated?

Gold trades from Sunday 18:00 to Friday 17:00 New York time with a daily one-hour break at 17:00. Outside those hours the API returns the last price labelled market_closed.

Start using the gold price API

Free credits included: sign up, confirm your email and get $10 to start. No card, no subscription.