Skip to content

Mansi08git/Hack-230394

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 

Repository files navigation

Currency Exchange Monitor

OVERVIEW

The currency_exchange_monitor.py script provides a user-friendly interface for the following functions:

Currency_exchange_monitor between the base currency and foreign currency inputed by the user. Monitoring exchange rates for selected currencies using custom alert agents and receiving alerts when the rates cross predefined upper and lower limits.

PREREQUISITE:

To run the currency_exchange_monitor.py script, you need to have the following prerequisites installed:

Python 3.x Tkinter (usually included with Python)

Requests library (pip install requests)

uAgents(pip install uagents)

HOW TO USE:

Run the script currency_exchange_monitor.py using Python 3.x. The application's GUI will appear. Select the base currency and target currency from the dropdown menus. Enter upper and lower limits for exchange rate monitoring . Click the "OK" button to start monitoring exchange rates and to trigger alert agents. The application will display the exchange rate and conversion result in the GUI. Clear button to reset the input fields. You will receive alert messages if the exchange rate crosses the specified upper or lower limit, when you close the current tkinter window, powered by custom alert agents.

FEATURES:

Real-time exchange rate monitoring with user-defined upper and lower limits. Alert messages for rate limit breaches, using custom alert agents. Clear button to reset the input fields.

CODE STRUCTURE:

The script follows a modular structure, using functions for different tasks. It utilizes threading to run currency conversion and rate monitoring concurrently. The GUI is created using Tkinter widgets. Exchange rate data is fetched from an external API using the Requests library. Custom alert agents are integrated to provide notifications when rate limits are breached.

API KEY:

The script uses an API key to fetch exchange rate data from an external source. The API key used in this script may be subject to rate limits or restrictions. If you plan to use this script in a production environment, consider obtaining your own API key from a reliable source and replacing the placeholder API key in the headers dictionary.

ALERT AGENTS:

Custom alert agents have been added to the script to provide rate monitoring and notifications using uAgents (Micro Agents). These agents continuously check the exchange rate between the selected currencies and trigger alerts when the rate crosses user-defined upper or lower limit. The alerts are displayed as pop-up messages in the GUI.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages