https://github.com/kantord/pricedb
Zero-config auto-updated pricedb for ledger
https://github.com/kantord/pricedb
Last synced: 8 months ago
JSON representation
Zero-config auto-updated pricedb for ledger
- Host: GitHub
- URL: https://github.com/kantord/pricedb
- Owner: kantord
- License: gpl-3.0
- Created: 2018-05-24T08:39:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T14:05:52.000Z (12 months ago)
- Last Synced: 2024-10-29T17:13:52.386Z (12 months ago)
- Language: Shell
- Homepage:
- Size: 4.36 GB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pricedb
Automatically updated pricedb for ledgerThis repository contains an automatically updated pricedb for *ledger*.
The pricedb contains exchange rates for all of the currencies published by the European Central Bank on this page:
https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.htmlBecause pricedbs can get pretty large, this repo includes compressed versions (.tar.gz and .tar.xz) as well as versions that
only go from 2010 and 2015 respectively.The fastest way to download the latest version of the pricedb is probably using the .tar.xz version and extracting that,
as that is greatly reduced in size and will load almost instantly:```
tar -xJf <(curl https://raw.githubusercontent.com/kantord/pricedb/master/price.db.tar.xz)
```Using the compression and a reasonably fast connection it is actually feasible to just "link" the pricedb instead of
keeping a local file that you have to update. Like so:```
ledger -f book.txt --price-db <(tar -xJf - <(curl -s https://raw.githubusercontent.com/kantord/pricedb/master/price.2015.db.tar.xz)) bal -X CNY
```If you are looking for a reporting tool for ledger that can handle updating your pricedb for you, I recommend checking out my other project called [ledger-cli-dashboard](https://github.com/kantord/ledger-cli-dashboard).
## Supported currencies
- EUR
- AUD
- BGN
- BRL
- CAD
- CHF
- CNY
- CZK
- DKK
- EEK
- GBP
- HKD
- HRK
- HUF
- IDR
- ILS
- INR
- ISK
- JPY
- KRW
- LTL
- LVL
- MXN
- MYR
- NOK
- NZD
- PHP
- PLN
- RON
- RUB
- SEK
- SGD
- THB
- TRY
- USD
- ZAR