Juniustech Gold Price Calculator fetches live gold prices, converts them to CHF, and displays an interactive karat price table on any page.
Features:
[gold_price_calculator]This plugin connects to external APIs to retrieve live gold spot prices and
currency exchange rates. This is required because the calculator shows
up-to-date values instead of static prices.
Requests run on the server with wp_remote_get. No personal data, no visitor
information and no site content is transmitted by this plugin.
Gold API (https://api.gold-api.com/price/XAU) — gold price in USD. Used when
no custom JSON URL is set. Terms: https://gold-api.com/ Privacy: the request
contains only the metal symbol path (XAU).
Frankfurter (https://api.frankfurter.dev/) — USD to CHF conversion. Used to
convert the gold USD price to CHF. Terms: https://www.frankfurter.dev/
The request contains only currency codes (USD, CHF).
Alpha Vantage (https://www.alphavantage.co/query) — optional fallback when
the sources above fail, or when the site owner has entered an API key.
The request contains lookup parameters (metal/currency codes) and the site
owner’s own API key. Terms: https://www.alphavantage.co/terms_of_service/
Privacy: https://www.alphavantage.co/privacy/
Optional custom JSON URL (settings) — if the site owner enters a URL, that
host is requested first. Only the URL they configured is contacted.
A request is sent when cached price data expires and a page containing the
calculator is loaded, when WordPress cron runs the hourly update, and when an
administrator saves settings or clicks Refresh now.