Skip to content

Python script to fetch historical market price of cryptocurrencies via CoinGecko REST API in Python

License

Notifications You must be signed in to change notification settings

kirancshet/Get-Crypto-Historic-Chart-CoinGecko

Repository files navigation

Get Historical MarketPrice from CoinGecko in Python

Python script takes a list of crypto tokens and fetch Historic data via CoinGecko REST API in Python

Table of Contents

Description

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

Prerequisites

  • Add your CoinGecko API key in the conf.py

  • Install requests and matplotlib library via pip

    pip install requests matplotlib

Usage

python generate_crypto_chart.py

Project Structure

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

Contact

Follow me for more updates here:

About

Python script to fetch historical market price of cryptocurrencies via CoinGecko REST API in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages