Skip to content
/ cbrates Public

Клиент для XML API курсов валют ЦБ РФ

License

Notifications You must be signed in to change notification settings

itroot/cbrates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0ea06bf · Apr 27, 2023

History

12 Commits
Apr 27, 2023
Apr 27, 2023
Apr 26, 2023
Apr 27, 2023
Apr 27, 2023
Apr 27, 2023
Apr 27, 2023
Apr 27, 2023
Apr 27, 2023
Apr 27, 2023
Apr 27, 2023
Apr 26, 2023

Repository files navigation

About

A go module and a binary to get Russian Central Bank currency rates.

Run

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

Use

go get github.com/itroot/cbrates

An example could be found here.

About

Клиент для XML API курсов валют ЦБ РФ

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages