hobochocolate
← All projects

Metals Tracker

A small desktop app showing live spot prices for gold, silver, platinum and palladium in a clean window, with dark and light themes. No account, no API key, nothing to install beyond Python.

Metals Tracker in its dark theme, showing gold, silver, platinum and palladium prices with change arrows
Dark theme.
The same window in its light theme
Light theme.

What it does

  • Live prices for gold, silver, platinum and palladium
  • 19 currencies, from dollars to euros, pounds, yen, rupees and rand
  • Prices per troy ounce, gram, kilogram or pound
  • Change since the last reading, with an arrow, an amount and a percentage
  • Enter how many ounces of each metal you hold and see what the pile is worth
  • Remembers theme, currency, unit, refresh rate and holdings between runs
  • Auto-refresh every 1, 5, 15, 30 or 60 minutes
  • One file, no third-party packages

How it works

Prices come from gold-api.com, over a free public endpoint that needs no key. Adding a currency code to the URL makes the service do the conversion and hand back the right symbol too. Fetching runs on a background thread and passes results to the window through a queue, so nothing freezes while it waits on the network, and each refresh pauses briefly between requests to stay friendly to a free service.

Prices always arrive per troy ounce, so switching units is instant — that's arithmetic on a number already in hand, not another request. The whole window is drawn on a tkinter canvas, which is what lets the gradient sit behind everything, with the real dropdowns and buttons on top of it.

Settings live in a small JSON file under ~/.config/metals-tracker/. Delete it to start fresh. If it's missing or damaged the app shrugs and uses the defaults.

Running it

Python 3 with tkinter, and an internet connection. Then:

python3 metals.py

On Debian, Ubuntu or Linux Mint, sudo apt install python3-tk fixes a missing tkinter. Developed and tested on Linux Mint.

Data source and disclaimer

Prices come from gold-api.com and are used under its terms of service.