Skip to content

IvanIsak2000/CURRENCYTRACK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

BASIC

Typing SVG

Typing SVG

Typing SVG

Typing SVG

Main currencies

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

Installation

  1. Clone repo:
git clone https://github.com/IvanIsak2000/CURRENCYTRACK.git
  1. Change folder:
cd src
  1. Activate poetry environment:
poetry shell
  1. Install dependencies:
poetry install  
  1. Get API key:
  1. Open config.py:

    Paste your API key in API_KEY

  2. Launch program:

python3 main.py

FUNCTIONS

  1. Set the scan interval
  2. Select the ratio of the two currencies
  3. Writing price history to a file
  4. The script keeps a log of operations (logging)

How use

Let's say you want to track the exchange rate of different currencies, for this follow the launch steps

1.CHOOSE YOUR MAIN CURRENCY

main_currency

2.CHOOSE A SECOND CURRENCY

second_currency

3.CHOOSE THE VERIFICATION INTERVAL

time

4.WE LOOK

set as

result

5.LOGGING

Please note that each request is logged to a file, and there is also a request history file!

files

First file contain history:

history

Second file contain all log data:

log file

API

This program used this API

  • Requests limit: 5000/month

ERROR PROCESSING

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.

Releases

No releases published

Packages

No packages published

Languages