Backtest a gold strategy with historical OHLC
Pull daily OHLC history from the goldprice.dev API and run a simple moving-average crossover backtest in Python to evaluate a gold trading strategy.
Read post →Market explainers and developer tutorials. Written for traders, quants, and engineers who work with live commodity data.
Pull daily OHLC history from the goldprice.dev API and run a simple moving-average crossover backtest in Python to evaluate a gold trading strategy.
Read post →Why sovereign reserve managers have been accumulating gold at record pace, and the mechanics of how that demand affects prices.
Read post →Pull gold and silver spot prices in a single async call, divide them, and display the ratio with a working JavaScript example.
Read post →How to convert a USD per troy ounce gold price into other currencies and per-gram units, with a working JavaScript example.
Read post →Read per-source prices from the API response, compute the spread in basis points, and flag when sources disagree beyond your tolerance threshold.
Read post →Real interest rates, the US dollar, inflation expectations, central-bank demand, and risk-off flows: the mechanisms behind gold's moves, and which ones matter most.
Read post →A self-contained HTML/JS snippet that fetches the live gold spot price and auto-refreshes every 60 seconds, ready to drop into any website.
Read post →Working code for pulling the gold spot price from the API in Node.js and the browser, with proper error handling.
Read post →How dividing two metal prices produces one of the clearest early-warning signals in macro analysis.
Read post →The pricing-currency mechanism and the real-rate channel explain the gold-dollar relationship, plus the conditions when it breaks down.
Read post →The evidence for gold as an inflation hedge is real but depends heavily on timeframe: here's what the data shows and a clear position on when to believe it.
Read post →Match cache TTLs to data freshness, read the X-RateLimit-* headers, back off gracefully on 429, and decide when polling beats streaming.
Read post →Add the goldprice.dev MCP server to Claude or Cursor so your agent can fetch the current gold spot price without any hand-rolled tool code.
Read post →Why gold is priced per troy ounce, how the troy system differs from the common ounce, and the exact conversions to grams and kilograms.
Read post →Bullion, ETFs, futures, and tokenized gold each give you different exposure: what each one actually is and what counterparty risk each carries.
Read post →Why two gold price feeds can show different numbers at the same instant, and what that divergence tells you about liquidity and data quality.
Read post →The three different gold prices that get conflated constantly: what each one actually represents, and when each is the right number to use.
Read post →Connect to the goldprice.dev SSE stream to receive real-time gold price updates in the browser and Node.js, with automatic reconnect handling.
Read post →A complete, production-ready Python script that polls the live spot price, checks it against a threshold, and sends a notification. Uses the REST API with retry logic and a local TTL cache.
Read post →What the gold-to-silver ratio is, how it is calculated, why traders watch it, and how to read it in context. A data-first explainer designed to stay evergreen.
Read post →