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 data · Proposed integrationCONCEPTSBroker 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.

api reference

Candles

GET /v1/candles · M1, M5 and M15 OHLC

Draft reference · Examples use sample data.

Request

GET/v1/candlesBearer token

Read-only endpoint. The base URL is a placeholder; these requests are not executable yet.

Request example
curl 'https://API_BASE_URL/v1/candles?feed=justmarkets&interval=M5' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Query parameters

ParameterTypeAccepted value
feedstring · requiredjustmarkets
intervalstring · requiredM1, M5 or M15

Pagination, date-range filters and batch size are not specified in this API contract.

Example response

200 OK Fixed sample data; not an executable market price.

application/json
{
  "demo": true,
  "feed": "justmarkets",
  "symbol": "XAUUSD",
  "timestamp": "2026-10-06T08:30:00Z",
  "sampled": true,
  "interval": "M5",
  "price_basis": "bid",
  "candles": [
    {
      "timestamp": "2026-10-06T08:15:00Z",
      "open": 2648.1,
      "high": 2651.2,
      "low": 2647.8,
      "close": 2650.4
    }
  ]
}

Response fields

FieldTypeDescription
demobooleanTrue for sample responses.
feedstringIdentifies the broker connection.
symbolstringClient-facing symbol: XAUUSD.
timestampstringISO 8601 UTC source timestamp. Fixed in examples.
sampledbooleanTrue: observations may omit intermediate ticks.
intervalstringM1, M5 or M15.
price_basisstringbid: candle values use broker Bid prices.
candlesarrayOHLC records; may be empty.
candles[].timestampstringCandle opening time in UTC.
candles[].open / high / low / closenumberBroker OHLC prices in USD.

Behavior & errors

An empty candles array is a valid 200 response. It still counts as one request under the proposed usage model.

All endpoints may report invalid credentials (401), a rate limit (429), or an exhausted allowance (429). See error handling →

Try scenarios in the explorer →