A simple Python application built using Tkinter to track the live prices of Bitcoin (BTC) and Ethereum (ETH). The application fetches the current cryptocurrency prices from the CoinGecko API and updates them in real-time.
- Displays live cryptocurrency prices in USD.
- Shows the price change and percentage change for Bitcoin and Ethereum.
- Updates prices every 10 seconds.
- Python 3.x
- Tkinter (comes pre-installed with Python)
- Requests library
-
Clone the repository or download the source code.
-
Make sure that Python 3 and pip are installed on your machine.
-
Install the Requests library if it is not already installed. You can do this using:
pip install requests
-
Navigate to the folder where the code is saved using the terminal or command prompt.
-
Run the application using Python:
python app.py
-
The application window will appear displaying the live prices of Bitcoin and Ethereum.
- get_crypto_price(crypto_id): Function to fetch the current price of the cryptocurrency from the CoinGecko API.
- update_prices(): Function that updates the displayed prices and their corresponding changes in the GUI.
- The GUI is created using Tkinter, with a title, frames for each cryptocurrency, and labels for displaying the prices and changes.
Contributions are welcome! Feel free to submit a pull request or open an issue for any enhancements or bug fixes.
- CoinGecko for providing the cryptocurrency data API.