A Python program that fetches specific data from Coin Market Cap, and saves in a .json file some useful information.
When started, the reporter will enter in an infinite cycle and every 10 minutes it will print onto a .json file the following data:
- best_currencies: a list containing the 10 best currencies for the last 24 hours, measured in percentage value change;
- worst_currencies: a list containing the 10 worst currencies for the last 24 hours, measured in percentage value change;
- highest_volume_currency: the currency having the highest volume (in $) for the last 24 hours;
- top_20_expense: the amount of money needed to buy one unit of each of the top 20 currencies (according to Coin Market Cap's ranking)
- top_volume_expense: the amount of money needed to buy one unit of each currency having a volume larger than $76.000.000;
- percentage_change: the overall percentage (positive or negative) obtained by the possible purchase of each one of the top 20 currencies Coin Market Cap's of the last 24 hours (we imagine that the purchase happened the day before);
By opening the main.py file you can notice the from config import my_api_key
.
In order to run the reporter, you need to get YOUR personal API key of Coin Market Cap at the following link.