Data Sources & Methodology

We publish verified, indicative gold prices - never typed in by hand, estimated, interpolated, or scraped from jeweller sites.

Gold spot price (XAU/USD)

USD/LKR exchange rate

The Central Bank of Sri Lanka publishes an official indicative USD/LKR spot rate each business day at cbsl.gov.lk → Rates and Indicators → Exchange Rates. It has no public API, so it is referenced here rather than used automatically. Market mid rates normally sit very close to it.

Verification

  1. Fetch the international gold spot price (US$ per troy ounce) from a primary source, and an independent secondary source when configured.
  2. Fetch the USD/LKR exchange rate the same way: primary plus an independent secondary source.
  3. Validate every reading: correct format, correct currency, a positive number, within a sane range, and fresh enough.
  4. Cross-check the primary and secondary reading for each figure - they must agree within a small tolerance. The primary reading is used for the calculation; readings are never averaged.
  5. Compare the result with the last verified price. An abnormally large jump is held for a human to confirm rather than published automatically.
  6. Calculate: spot price x USD/LKR rate, divided by 31.1034768 (grams per troy ounce), multiplied by karat/24. Rounding happens once, at the end.
  7. Store the new price only if it changed, roll it into the daily history, refresh the RSS feed, and clear cached pages.

Current Sources In Use

Gold primarygold_api_com
Gold secondarynot configured
FX primaryexchangerate_api_open
FX secondaryexchangerate_api_open
Verification modesingle_source

Limitations

These are indicative market-rate conversions, not a jeweller's retail selling price, which includes making charges, taxes and margins. Treat this as a reference, not a quote.