Inspiration
Most free exchange rate APIs stop at currencies, and the gold price in the units people actually buy (a tola in Pakistan, a tael in Hong Kong, a mithqal in Iraq) is hard to find in machine-readable form. We wanted one free, no-sign-up source for both.
What it does
The Crystal Ball Markets Rates API publishes three JSON files, refreshed every minute:
- rates.json: exchange rates against the US dollar for 60 currencies, each with its source (our forex quote, a currency peg, the ECB reference rate or the country's central bank)
- gold.json: the gold price in local money for 69 countries, in the local unit and purity, plus a normalised price per gram of 24k gold
- quotes.json: live quotes for about 210 markets across forex, metals, energy, indices, stocks and crypto
Browsers can call it directly with fetch(): no key, no sign-up, CORS on. The only condition is a visible "Rates by Crystal Ball Markets" link where the figures appear.
How we built it
The files are generated from our live price feeds and central bank reference rates, served from Cloudflare's edge, and described by an OpenAPI spec and a Postman collection.
Try it
- Live demo (currency converter and gold table): https://codepen.io/Trader-Support-and-Development/full/XJMwGXq
- Gold price by country dataset on Kaggle: https://www.kaggle.com/datasets/crystalballmarkets/gold-price-by-country
- The markets hub uses the same figures.
What's next
More countries for gold, historical daily files, and small client libraries for JavaScript and Python.