More readme

This commit is contained in:
Love 2025-01-09 16:00:11 +01:00
parent 52377e9988
commit ec8aa710e0
2 changed files with 19 additions and 2 deletions

View File

@ -16,7 +16,9 @@ Congratulations! Now the cli binary `ecb-rates` will be in your cargo bin folder
## Features ## Features
#### Fetch in different views #### Fetch as many days as you want
It will fetch any of the following api nodes, and reduce them for you.
- Last available day. - Last available day.
- Last 90 days - Last 90 days
@ -32,9 +34,20 @@ Congratulations! Now the cli binary `ecb-rates` will be in your cargo bin folder
It features an extensive cache, which will [calculate hollidays](src/holiday.rs) in order to know whether to invalidate it or not. It features an extensive cache, which will [calculate hollidays](src/holiday.rs) in order to know whether to invalidate it or not.
#### Show the rates in your way
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.
#### Fast
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`
### Examples ### Examples
#### Show the original data from ECB #### Show the original data from ECB
![eur-to-all](screenshots/eur-to-all.png) ![eur-to-all](screenshots/eur-to-all.png)
#### ...with only select currencies #### ...with only select currencies
@ -49,6 +62,10 @@ It features an extensive cache, which will [calculate hollidays](src/holiday.rs)
![all-to-usd](screenshots/all-to-usd.png) ![all-to-usd](screenshots/all-to-usd.png)
#### Show multiple days
![eur-to-all-multiple-days](screenshots/eur-to-all-multiple-days.png)
## Acknowledgment ## Acknowledgment
The data is (obviously) provided by the [European Central Bank](https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html) The data is (obviously) provided by the [European Central Bank](https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html)

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB