| Crates.io | ecb-rates |
| lib.rs | ecb-rates |
| version | 1.1.0 |
| created_at | 2025-01-09 16:28:03.145186+00 |
| updated_at | 2025-12-17 21:36:10.978041+00 |
| description | Query exchange rates from the European Central Bank (ECB) |
| homepage | |
| repository | https://github.com/lov3b/ecb-rates |
| max_upload_size | |
| id | 1510128 |
| size | 535,990 |
A CLI utility to fetch exchange rates from the European Central Bank.
If you're on Debian Linux, then just go over to the releases, and install the latest .deb package with dpkg
First, make sure that you have the rust toolchain installed. If not, then go to rustup to install it.
Now, run the following cargo command:
cargo install ecb-rates
Congratulations! Now the cli binary ecb-rates will be in your cargo bin folder.
It will fetch any of the following api nodes, and reduce them for you.
It features an extensive cache, which will calculate hollidays in order to know whether to invalidate it or not.
Change the rates for the perspective of any currency with the --perspective or -p flag.
Flip it from EUR to ALL to ALL to EUR with the --invert or -i flag. It will work as expected with the perspective option.
It wouldn't be a rust project without being BLAZINGLY FAST! When the cache is valid a single day will on my computer be shown in 3 ms. When the cache isn't being used it will be ~90ms. The cache speed will largely depend on your drive, the latter will depend on your network speed. Both options are fast enought to be in a .bashrc or .zshrc





The data is (obviously) provided by the European Central Bank