Ad

Thursday, December 9, 2021

CoinMarketCap API for crypto developers, blockchain developers

 While the free version of CoinMarketCap API is limited, it gives fun useful information. Please read our disclaimer before using this post. The API can be found on  https://coinmarketcap.com/api/  Here are somethings you can find in the coinmarketcap API


Market cap
Price
Volume (24 hours)
Circulating Supply
Change (24 hours)

you will be able to plot a simple price plot.

What you won't be able to do without spending a lot of money:

historic price

An important object is the response body returned by the coinmarketcap API.

Did you know that the most basic coinmarketcap api functionality can be accessed using R Programming? There's a package for that on github : CoinmarketcapR. This is a community package. We are not sure how safe, secure and how it can be best used. An initial looks shows that : this library is somewhat popular, has youtube tutorials (unofficial), can access some basic coinmarketcap APIs, while most APIs are deprecated. The library needs to be updated. It goes well with R. 

In news articles, we often hear that crypto has reached certain dollar amount of global market cap. CoinMarketCap can give you that number with a function call.

With advanced coinmarketcap API pricing and package, it's possible to do a bit of intermediate to advanced technical analysis. 

Did you know that the coinmarketcap website is often used to check contract addresses on Ethereum, and other blockchains such as binance smart chain. 


Below is the curl command to get  a list of current crypto prices using your coinmarketcap api key. Remember to replace the your-api-key-here with your actual api key. The free api key is relatively generous. It even shows a list of currency prices. 

curl -H "X-CMC_PRO_API_KEY: your-api-key-here" -H "Accept: application/json" -d "start=1&limit=5000&convert=USD" -G https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest

No comments:

Post a Comment

React UI, UI UX, Reactstrap React Bootstrap

React UI MATERIAL  Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms.  Columns, grid