Skip to content

zesaver/uah_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UAH Currency Converter Using PrivatBank API

About

These small scripts can be used to convert Ukraine Hrivnas to US Dollars or Euro and vice versa using actual rates. Usage:

$ eur 50 eur
1237.50  UAH
$ eur 70 EUR
1732.50  UAH
$ usd 1000 uah
40.40  USD
$ usd 20 usd
495.00  UAH
$ eur
EUR buying rate for  2016-08-01 : 27.55  UAH
1. EUR --> UAH
2. UAH --> EUR
Choose direction: 1
Enter the sum to exchange: 100
2755.00  UAH

Development

Scripts are written under Python 2.7.12 and use following python modules:

  • requests
  • argparse
  • os
  • json
  • datetime

Internet connection is required (to use PrivatBank API). Exchange rates are caching for 10 minutes to improve the speed.

Any contributions, forks and advices are welcome!

ToDo

  • Interactive mode