Skip to content

Windows/Linux Command line tool 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

License

Notifications You must be signed in to change notification settings

Rygor83/nbrb.by

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nb

Python 3.6+

Windows Linux

GitHub license

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.

Installation

Use the package manager pip to install foobar.

pip install <path to nbrb_by folder>

Usage

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

Examples

Exchange rates

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.

nb rate commands

Currency converter

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.

nb conv commands

Refinance rate

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.

nb ref commands

API help

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Windows/Linux Command line tool 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

Topics

Resources

License

Stars

Watchers

Forks

Languages