This project involves creating a Cryptocurrency Market Analyzer using Python and the CoinMarketCap API. The analyzer fetches real-time data for the top 15 cryptocurrencies in terms of market capitalization and stores it in a DataFrame. The data is then saved to a CSV file for persistence, and trends over time are visualized using Seaborn.
The project consists of the following components:
-
Cryptocurrency API Integration:
- Utilizes the CoinMarketCap API to retrieve the latest cryptocurrency data.
- Handles API requests and manages data using Python's requests library and pandas.
-
Data Persistence:
- Saves the fetched data to a CSV file for future analysis.
- Ensures data persistence for historical trends and further exploration.
-
Data Analysis:
- Utilizes pandas for data manipulation and analysis.
- Calculates the mean percentage changes for different time intervals (1 hour, 24 hours, 7 days, 30 days, 60 days, 90 days) for each cryptocurrency.
-
Visualization:
- Uses Seaborn and Matplotlib for visualizing percentage change trends.
- Generates a point plot to display trends over time for each cryptocurrency.
- Clone the repository to your local machine.
- Install the required libraries
- Run the script to fetch and analyze cryptocurrency data.
- The script fetches data for the top 15 cryptocurrencies and stores it in a CSV file (
API.csv
). - The data analysis section calculates the mean percentage changes for different time intervals.
- Visualizations are generated using Seaborn, showing trends over time for each cryptocurrency.
- Ensure you have a valid CoinMarketCap API key for authentication (replace
'X-CMC_PRO_API_KEY'
with your key in the script). - Adjust the duration and frequency of API requests based on your preferences.