https://github.com/03-bunny-06/crypto-price-tracker
This Python script fetches and displays real-time cryptocurrency prices for a list of popular cryptocurrencies in various currencies (BTC, USD, EUR, and INR). The data is presented in a visually appealing table using the rich library.
https://github.com/03-bunny-06/crypto-price-tracker
api-calls json python requests-library-python rich-library
Last synced: 2 months ago
JSON representation
This Python script fetches and displays real-time cryptocurrency prices for a list of popular cryptocurrencies in various currencies (BTC, USD, EUR, and INR). The data is presented in a visually appealing table using the rich library.
- Host: GitHub
- URL: https://github.com/03-bunny-06/crypto-price-tracker
- Owner: 03-Bunny-06
- Created: 2025-01-04T04:49:45.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T04:28:18.000Z (4 months ago)
- Last Synced: 2025-02-18T05:26:59.806Z (4 months ago)
- Topics: api-calls, json, python, requests-library-python, rich-library
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crypto Price Tracker
## Project Description
This Python script fetches and displays **real-time cryptocurrency prices** for a list of popular cryptocurrencies in various currencies (**BTC, USD, EUR, and INR**). The data is presented in a visually appealing table using the `rich` library.
## Features
- **Fetch Cryptocurrency Data:** Retrieves the latest prices for multiple cryptocurrencies using the **CryptoCompare API**.
- **Multi-Currency Support:** Displays prices in **Bitcoin (BTC), US Dollars (USD), Euros (EUR), and Indian Rupees (INR)**.
- **Rich Table Display:** Utilizes the `rich` library to format and display data in a styled table with clear visuals.## Prerequisites
- Python **3.7 or higher**
- Install the required libraries using:
```sh
pip install requests rich
```## Usage
1. Clone or download the script.
2. Replace the `key` variable with your own **API key** from **CryptoCompare**.
3. Run the script:
```sh
python crypto_tracker.py
```
4. View the cryptocurrency prices in a **formatted table output**.## Example Output
A visually styled table of cryptocurrency prices with columns for:
- **Cryptocurrency name**
- **Prices in BTC, USD, EUR, and INR**
## Notes
- Ensure your **API key** has sufficient access to fetch data.
- Modify the `cryptos` and `currencies` variables as needed to customize the list of cryptocurrencies and target currencies.## Credits
- **API Source:** [CryptoCompare](https://www.cryptocompare.com/)
- **Libraries Used:**
- `requests` for API calls
- `rich` for table styling and console output