USD
EUR
RUB
Other currencies
AED
AMD
AUD
AZN
BGN
BRL
BYN
CAD
CHF
CNY
CZK
DKK
EGP
GBP
GEL
HKD
HUF
IDR
INR
JPY
KGS
KRW
KZT
MDL
NOK
NZD
PLN
QAR
RON
RSD
SEK
SGD
THB
TJS
TMT
TRY
UAH
UZS
VND
XDR
ZAR
- Clone repo:
git clone https://github.com/IvanIsak2000/CURRENCYTRACK.git
- Change folder:
cd src
- Activate
poetry
environment:
poetry shell
- Install dependencies:
poetry install
- Get
API key
:
- Open freecurrencyapi
- Log in
- Copy your
API key
s
-
Open
config.py
:Paste your
API key
inAPI_KEY
-
Launch program:
python3 main.py
- Set the scan interval
- Select the ratio of the two currencies
- Writing price history to a file
- The script keeps a log of operations (logging)
Let's say you want to track the exchange rate of different currencies, for this follow the launch steps
1.CHOOSE YOUR MAIN CURRENCY
2.CHOOSE A SECOND CURRENCY
3.CHOOSE THE VERIFICATION INTERVAL
4.WE LOOK
5.LOGGING
Please note that each request is logged to a file, and there is also a request history file!
First file contain history:
Second file contain all log data:
This program used this API
- Requests limit:
5000/month
The program is logging
Let's say an API check – if the site responds that the key was wrong - the site will return a 401 error, which will be displayed to the user. To fix the error you need to restart the program.