Fetching commodity prices and exporting in Ledger format
This utility downloads and stores commodity prices used by Ledger-cli.
It stores the prices in an Sqlite database.
This is a continuation of the Price Database project. The previous version was implemented in Python. It has been migrated to Rust.
The configuration file is located in the user's config directory, i.e. ~/.config/pricedb.
The database is (currently) created manually. The functionality to automatically generate the database file needs to be completed.
A database file is available at the data directory in the Python repository. This can be used temporarily, until the database initialization scripts are consolidated (they are currently only used in tests).
The application is a Command-Line Interface (CLI) and displays the available options when run. The most-common commands:
shell
pricedb dl
pricedb prune
pricedb export
When not using "bundled" option for libsqlite-sys
, on Debian:
shell
export SQLITE3_LIB_DIR=/usr/lib/x86_64-linux-gnu/
export SQLITE3_INCLUDE_DIR=/usr/include/