A go module and a binary to get Russian Central Bank currency rates.
go run github.com/itroot/cbrates/cmd/cbrates@latest
+----------------------------------------------------------+
| Курсы валют ЦБ РФ на 27.04.2023 |
+------+-----+--------+----------------+---------+---------+
| CODE | NUM | AMOUNT | NAME | VALUE | FLOAT64 |
+------+-----+--------+----------------+---------+---------+
| USD | 840 | 1 | Доллар США | 81,6274 | 81.6274 |
| EUR | 978 | 1 | Евро | 90,1436 | 90.1436 |
| CNY | 156 | 1 | Китайский юань | 11,7626 | 11.7626 |
+------+-----+--------+----------------+---------+---------+
go run github.com/itroot/cbrates/cmd/cbrates@latest -h
Usage of /tmp/go-build911405355/b001/exe/cbrates:
-date string
Date to get rate values (default "27.04.2023")
-filter string
Currencies codes to filter, empty string for all currencies (default "CNY,USD,EUR")
-no-cache
Whether or not to cache requests
ivan@gbox:~/Desktop/itroot/projects/subm
go get github.com/itroot/cbrates
An example could be found here.