![Product Name Screen Shot][product-screenshot]
I created this tutorial to provide an introduction to working with the Coinmarketcap API.
Here's why:
- Coinmarketcap's API offers access to extensive data and up to the minute prices of cryptocurrencies
- It also offers price histories and even graphs. (The tutorial does not cover these)
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
- Python 3.9 preferred
You first need to obtain an api key by signing up with Coinmarketcap API on https://coinmarketcap.com/api/. Then copy the API key as directed.
You will have to use your choice of code editor
-
Get a Coinmarketcap API key
-
Clone the repo
git clone https://github.com/your_username_/Project-Name.git
-
Make a env file for the command line commands to set the environment variable, COINMARKETCAP_API_KEY.
-
Navigate to git project folder.
-
Run the program with the command, python cmtest.py.
Scott McMahan for Datascienceexamples.com
Free to use and distribute with proper attribution.
Project Link: https://github.com/scottcm73/coinmarketcap_api_tutorial
I obtained much of the code from: