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.
Bid, ask, spread, tick time in UTC and the age of the price.
OHLC from one-second S1 bars to D1. Forming bars are flagged.
Every XAUUSD bid and ask change, timestamped to the millisecond, for about the last six months.
Gaps from closures or missing data are reported, never filled in.
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
- Labelled by start time, in UTC. An hourly candle stamped 14:00 covers 14:00 to 14:59. The candle that is still
forming comes back marked
"complete": false. - A trading day starts at 5pm New York time, the standard for forex and gold (21:00 UTC in summer, 22:00 in winter). Daylight saving changes are handled for you.
- The quiet daily close is visible, not hidden. Every candle includes its spread, so you can see it widen around 5pm New York. Gold also pauses for an hour each weekday.
- Missing data is reported, never invented.
/v1/candles/XAUUSD/gapslists every gap and says whether it was a normal market closure.
History available
| Timeframe | XAUUSD history from | Depth |
|---|---|---|
| M1 | 28 Sep 2026 | 2 months |
| M5 | 08 Jul 2026 | 5 months |
| M15 | 11 Dec 2025 | 12 months |
| M30 | 07 Feb 2025 | 22 months |
| H1 | 01 Jun 2023 | 3.5 years |
| H4 | 20 Mar 2023 | 3.7 years |
| D1 | 19 Mar 2023 | 3.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, health | Free |
| 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.
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.