This is a simple Python application that uses the tkinter library for GUI and requests library to fetch real time Bitcoin prices in USD, JPY, and EUR. All the Bitcoin prices are fetched using the CryptoCompare API.
- You have installed Python 3.6 or above.
- You have installed the
requestsandtkinterPython libraries.
To use the Bitcoin Price Index Application:
- Clone this repository to your local machine.
- Run the script from the terminal using the command
python3 script_name.py. - A new window will open that shows the real-time Bitcoin price in USD, JPY, and EUR. The prices are refreshed every second.
The project has a simple structure:
- A function
track_bitcointhat fetches the latest Bitcoin prices from the CryptoCompare API and updates them on thetkinterGUI. - The main part of the script that initializes the
tkinterGUI and continuously callstrack_bitcointo keep the prices updated. - The application displays the Bitcoin price in USD, JPY, and EUR, and the time at which the price was last updated.
This project uses the CryptoCompare API for fetching Bitcoin prices. You can find their documentation here.
