Methodology
How prices are sourced, converted and shown
Full detail on the data pipeline, every unit conversion, purity calculation and freshness rule.
1. Data pipeline
Gold and silver prices are sourced from open data APIs — free, no-auth, CORS-open, fetched directly from your browser. No proxy server is involved. Underlying spot prices ultimately trace back to benchmark auctions and inter-dealer activity on wholesale markets such as the LBMA (London Bullion Market Association) ↗ for gold and silver, and CME Group COMEX ↗ for futures-derived spot levels.
- One API call delivers live gold & silver spot prices plus a full FX table (160+ currencies). Gold is provided in USD/oz, USD/gram and USD/kg. Silver is USD/oz only; other units are derived. Refreshed continuously; edge-cached 30 s.
- Copper spot is sourced separately. The global benchmark for copper is the LME (London Metal Exchange) Grade A copper price ↗, quoted in USD per metric tonne. COMEX copper futures (traded on CME Group) are the primary US-market reference.
Each response carries a timestamp reflecting when the upstream source last updated. A single request serves gold, silver and FX together — one network request per poll cycle.
The app re-fetches every 10 minutes while the browser tab is visible, and pauses polling when the tab is hidden. On the first load both metals are fetched in parallel.
2. Unit conversions
All prices are normalised internally to USD per gram. The API already provides values in multiple units but we recompute from grams to ensure consistency. Conversion factors used:
The display unit is chosen by the user (default: troy oz).
The formula is: price = usd_per_gram × grams_per_unit × fx_rate × purity.
3. Purity calculations
The base price from the feed is for fine (100%) metal. Purity is applied as a multiplier:
Gold karats
Silver fineness
Note: "Fine" means 999‰ for silver (industry standard). For gold, "Fine" is defined as 100% (the theoretical pure reference used in the feed). In practice 24k = 999‰ ≈ 99.9%. Hallmark standards vary by jurisdiction — see World Gold Council standards reference ↗ and the British Geological Survey assay office guide ↗ for UK hallmark regulations.
Copper has no purity grades — the purity setting has no effect on the copper tab. Industrial copper grades are defined by ASTM International ↗ and the Copper Development Association ↗.
4. Freshness rules
Freshness is computed as age = now − timestamp where timestamp
comes from the API response. Thresholds:
The exchange rate and metal feeds have independent timestamps and may be in different freshness states simultaneously. Both are shown in the footer.
5. Currency conversion
All metal prices are stored internally as USD per gram. The displayed price is:
displayed = usd_per_gram × grams_per_unit × fx_rate × purity_fraction
fx_rate is the USD→target rate from the exchange endpoint
(e.g. USD→EUR = 0.9213). For USD display fx_rate = 1.
Gold and silver are also available as a secondary price derived from exchange-rate data. This provides a second, independent price source. When both the primary metals feed and the secondary source are available, any disagreement is shown as a chip next to the price.
Exchange rate data is sourced from open FX feeds. For historical reference exchange rates and monetary data, see the Federal Reserve FRED exchange rate database ↗ or the ECB Euro reference rates ↗.
6. Sanity checks
Values outside expected bands are flagged with a "Value outside expected range" chip. The app never suppresses a questionable value — it shows it with a visible warning. Expected ranges (USD):
These bands are heuristic — they would catch an obviously corrupted feed value, not every market move. The app never suppresses a questionable value — it shows it with a visible warning chip.
7. Known limitations
- Spot price only. This site shows the raw inter-dealer spot price. Retail dealers add premiums (typically 2–10% above spot for coins, more for small bars) and pay below spot when buying. Use our number as a baseline, not a shop quote. For live dealer comparison, see APMEX ↗ or BullionVault ↗.
- No price history yet. The upstream provider exposes up to 10 years of daily OHLCV history. Historical charts are planned for a future version. For now, free historical data is available at Macrotrends ↗ or via the FRED gold price series (St. Louis Fed) ↗.
- 10-minute polling. The app re-fetches data every 10 minutes, and the upstream CDN may cache responses for up to 10 minutes. The displayed price may be up to ~20 minutes behind the true latest value. The exact data age is always shown. For true real-time streaming quotes, professional terminals such as TradingView ↗ or Bloomberg are required.
- Exchange rate freshness is separate. A frozen metal price still uses current exchange rates. The displayed local-currency price combines two timestamps; both are shown in the footer.
- Not investment advice. These are reference prices for information only. MetalTheGuide is not affiliated with any data provider, exchange, or brokerage. For regulated investment guidance, consult a qualified financial adviser or refer to resources from the World Gold Council ↗ or Silver Institute ↗.