No description
Find a file
2020-12-23 23:39:04 +01:00
fetch_rates.py Initial commit 2020-12-22 22:02:14 +01:00
LICENSE Initial commit 2020-12-22 22:02:14 +01:00
rates Initial commit 2020-12-22 22:02:14 +01:00
README.md Initial commit 2020-12-22 22:02:14 +01:00
update-rates Away with deprecated "and" style 2020-12-23 23:39:04 +01:00

This is a setup to automatically update a Ledger pricedb. Its meant to work for the author and is published for inspiration, not to be a tool that works for everyone.


Requires Python 3.6 or higher.

Put rates and fetch_rates.py somewhere on a server.

Put update-rates somewhere in your path on your local machine.

Choose a location to put the serverside data files, e.g. /var/local/pricedb. Configure all three scripts as appropriate.

Create a cron job for fetch_rates.py on the server.

0 0 * * * /usr/local/bin/python3 /usr/local/lib/pricedb/fetch_rates.py

To update the pricedb on your machine, run update-rates.