GETTING STARTEDIntroductionOverview of the xauapi data APIGETTING STARTEDQuickstartCreate a key and make your first requestGETTING STARTEDAuthenticationBearer tokens, key rotation and revocationGETTING STARTEDMCP integrationConnect AI tools to gold market dataCONCEPTSBroker feedsBrokers and source identityCONCEPTSFreshness & coverageTimestamps, sampling and stale dataAPI REFERENCELatest quoteGET /v1/quote · Bid, Ask and spreadAPI REFERENCECandlesGET /v1/candles · M1, M5 and M15 OHLCAPI REFERENCEFeed statusGET /v1/status · Connection and freshnessRESOURCESErrors401, 429 and 503 response handlingRESOURCESUsage & limitsAnnual allowance, rate limits and billing

11 topics. Select a result to open it.

concepts

Freshness & coverage

Timestamps, sampling and stale data

API reference · Code and response examples

Source timestamps

Timestamps use ISO 8601 UTC. A response received now may contain an older quote: inspect the source timestamp, not just your request time.

Sampled coverage

The feed samples broker quotes approximately every 250ms. Terminal and network delays can increase that interval. Intermediate ticks, crossovers and price extremes may be missed.

Candles are broker history, while quote samples are observations. Neither a successful HTTP response nor a recent receipt proves complete tick coverage.

Stale data

Quotes, candles and status can return 200 with stale: true. Missing feed data returns 503. A successful response does not guarantee a fresh price.

Quotes are stale after five seconds without a source tick; candle snapshots are stale after thirty seconds without a receipt. Closed markets can produce stale prices even while the collector is healthy. These thresholds are freshness indicators, not an uptime SLA.

A missing quote timestamp or a source time more than one second in the future also marks a quote stale. Missing candle receipt time marks the snapshot stale. Treat unexpected timestamps as a diagnostic condition.