Gold (XAUUSD) market data
Gold (XAUUSD) is a metals contract priced in USD.
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 best bid and ask, the mid, and a spread reading, while a companion trade endpoint carries the last print 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. How far back the history reaches depends on your plan tier, from a recent window on the free tier to the full archive on higher tiers. The pricing page lists the exact windows.
The live update rate rises with tier, from one update per second up to ten, and the median age of a published price sits under 100 milliseconds, a measure of data freshness rather than trade execution. Every gold price is a volume and reputation weighted median drawn from several independent venues, and each tick carries source, ingest, and publish timestamps plus a quality flag. Gold has no streaming feed. It is served over REST snapshots and history.
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.
curl -H "X-API-Key: $SIFTING_API_KEY" \
"https://api.sifting.io/v1/last/trade/commodities/XAUUSD"# 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"] }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 bid, ask, mid, and spread. A separate trade endpoint returns the most recent print 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 snapshot returns the best bid and ask, the mid price, a spread reading, and a timestamp. Each record also carries source, ingest, and publish times and a data quality flag.
How far back does XAUUSD history go?
History depth is set by your plan tier: a recent window on the free tier, one year on the mid tier, and the full archive on the higher tiers. The pricing page lists the exact windows.
How often does the XAUUSD price update?
The live update rate rises with tier, from one update per second up to ten per second. The median age of a published price is under 100 milliseconds, which measures how fresh the data is, not execution speed.
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.