sifting/io
Commodities · SPOT

Gold (XAUUSD) market data

Gold (XAUUSD) is a metals contract priced in USD.

Export historical CSV / Excel

About Gold (XAUUSD)

XAUUSD is the price of one troy ounce of gold expressed in US dollars. It is the reference rate the physical and paper gold markets quote against, and it trades continuously through the working week rather than on a fixed daily session.

SiftingIO publishes a single aggregated gold price rather than a quote from any one source. The live snapshot returns the reference trade price, best bid and ask; calculate the spread as ask minus bid. A companion trade endpoint carries the latest reference price with its size and timestamp. Both are plain REST calls authenticated with an X-API-Key header, so a gold price can land in a script in a few lines.

For backtests and charts, historical open, high, low, close, and volume bars are available over REST at intervals from one minute upward. Every plan includes the full available gold history. How far back it reaches depends on source coverage, with the market's historical depth listed on the pricing page.

SiftingIO delivers real-time gold prices over REST and WebSocket. Stream XAUUSD updates for live charts and alerts, with each public tick carrying a Unix millisecond timestamp in t.

Reference data

Symbol
XAUUSD
Name
Gold
Asset class
Commodities
Venue
SPOT
Base asset
XAU
Quote asset
USD
Currency
USD
Category
metals

XAUUSD Commodity Price and Market Data API

Access XAUUSD commodity price and market data through SiftingIO's REST and WebSocket APIs, including latest price data, historical records, and live updates where available.

Use commodities/XAUUSD for request-based access through REST, or use the same symbol key with WebSocket streams for real-time commodities market updates.

REST · last trade
curl -H "X-API-Key: $SIFTING_API_KEY" \
  "https://api.sifting.io/v1/last/trade/commodities/XAUUSD"
WebSocket · subscribe
# Connect (set SIFTING_API_KEY first)wscat -c "wss://stream.sifting.io/ws/v1?key=$SIFTING_API_KEY" # Then send this subscribe frame:{ "op": "subscribe", "product": "com", "symbols": ["XAUUSD"] }
MCP · AI agent prompt
# With the SiftingIO MCP server connected:Get the latest XAUUSD commodity market data from SiftingIO.Then fetch historical OHLCV bars for XAUUSD at a 1h interval.

Related commodities

Related reading

Frequently asked questions about Gold (XAUUSD)

How do I get real-time gold (XAUUSD) prices from an API?

Call the live snapshot endpoint for XAUUSD with your API key to receive the current reference trade price, bid and ask. Calculate the spread as ask minus bid. A separate trade endpoint returns the latest reference price with its size and timestamp. Both are standard REST requests.

Does SiftingIO provide historical XAUUSD OHLCV data?

Yes. Historical open, high, low, close, and volume bars are available over REST at intervals from one minute upward, returned gzip encoded.

What fields does the XAUUSD quote return?

The quote endpoint returns s (symbol), b and B (bid price and size), a and A (ask price and size), and t (Unix millisecond timestamp). Calculate the spread as a minus b. Separate source, ingest, and publish times and a quality flag are not exposed in this response.

How far back does XAUUSD history go?

Full historical depth is included on every plan, Free to Ultra. How far back it reaches varies by market. The pricing page lists the depth for each market.

How often does the XAUUSD price update?

XAUUSD prices are available in real time over REST and WebSocket. Use REST for the latest quote or subscribe over WebSocket to receive live price updates.

How is the XAUUSD price calculated?

The published gold price is a volume and reputation weighted median across several independent venues, not a single feed. The methodology page describes how the consensus is formed.

Gold Price (XAUUSD): Live & Historical Data API · SiftingIO