Windows/Linux Command line for obtaining the official exchange rate and the refinancing rate of the Belarusian ruble against foreign currencies established by the National Bank of the Republic of Belarus
Linux: tested on Windows 10 with WSL Ubuntu and Pycharm.
Use the package manager pip to install foobar.
pip install <path to nbrb_by folder>
Usage: nb [OPTIONS] COMMAND [ARGS]...
Windows Command line for obtaining the official exchange rate and the
refinancing rate of the Belarusian ruble against foreign currencies
established by the National Bank of the Republic of Belarus
Options:
--help Show this message and exit.
Commands:
conv Currency converter
rate Exchange rates
ref Refinance rate
Usage: nb rate [OPTIONS] [CURRENCY]
Exchange rates
Argument optional: CURRENCY: Currency for which we want to get the exchange rate.
If empty then retrieve all exchange rates.
Options:
-d, --date TEXT Get a rate on a date. Possible values: 01.01.2021,
01/01/2021, 01-01-2021, 01012021, 010121. If empty then today date used.
-w Open national bank website with information about exchange rates
--help Show this message and exit.
Usage: nb conv [OPTIONS] AMOUNT CUR_FROM CUR_TO
Currency converter
Required parameters:
AMOUNT: The amount from which we recalculate, for example: 100
CUR_FROM: The currency from which we are recalculating, for example: USD
CUR_TO: Currency to be converted into, for example, EUR
Example: nb conv 100 usd eur
Options:
-d, --date TEXT Conversion date. Possible values: 01.01.2021, 01/01/2021,
01-01-2021, 01012021, 010121. If empty then date equal
today
--help Show this message and exit.
Usage: nb ref [OPTIONS]
Refinance rate
Options:
-d, --date TEXT Get a rate on a date. Possible values: 01.01.2021,
01/01/2021, 01-01-2021, 01012021, 010121. If empty then today date used
-all Get all Refinance rates
-w Open national bank website with information about refinance rates
--help Show this message and exit.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.