Python script takes a list of crypto tokens and fetch Historic data via CoinGecko REST API in Python
This Python takes a list of tokens and fetch Historic data for the last 1 year. We shall fetch the Historic data via CoinGecko API. Once the data is downloaded, we will display the data as a line-graph chart in Python
-
Add your CoinGecko API key in the conf.py
-
Install requests and matplotlib library via
pip
pip install requests matplotlib
python generate_crypto_chart.py
The entire project follows the below folder structure:
.
├── conf.py # CoinGecko Configuration File
├── fetch_historic_price.py # Fetch Historic crypto price via CoinGecko API
├── generate_crypto_chart.py # Generate line-chart of list of Crypto tokens
└── README.md
Follow me for more updates here: