0

I am using CryptoCompare's API and it gives me volume data, but I am wondering where I can get market cap / circulating supply data. Do any reliable API's provide this?

2

Checkout coinmarketcap. they've all API you may need for cryptocurrencies

1

As Adam answered, the Coinmarketcap.com API has a ton of data that's aggregated from a ton of sources. Also, it's been around for a while and the API is accessible 24/7, so it's definitely one of the more reliable services. I heard they even filter out sources with outlier data, such as price or volume spikes from artificial pumping or commission-free trades, which makes the data that much more reliable (IMO).

The following URL will return JSON with high-level stats for every coin tracked by the API:

https://api.coinmarketcap.com/v1/ticker/

A sample response is as follows:

[{
        "id": "bitcoin", 
        "name": "Bitcoin", 
        "symbol": "BTC", 
        "rank": "1", 
        "price_usd": "10077.0", 
        "price_btc": "1.0", 
        "24h_volume_usd": "9717610000.0", 
        "market_cap_usd": "169661279499", 
        "available_supply": "16836487.0", 
        "total_supply": "16836487.0", 
        "max_supply": "21000000.0", 
        "percent_change_1h": "1.34", 
        "percent_change_24h": "-9.2", 
        "percent_change_7d": "-7.58", 
        "last_updated": "1517379267"
    }, 
    {
        "id": "ethereum", 
        "name": "Ethereum", 
        "symbol": "ETH", 
        "rank": "2", 
        "price_usd": "1077.71", 
        "price_btc": "0.107872", 
        "24h_volume_usd": "4432010000.0", 
        "market_cap_usd": "104880306525", 
        "available_supply": "97317745.0", 
        "total_supply": "97317745.0", 
        "max_supply": null, 
        "percent_change_1h": "1.06", 
        "percent_change_24h": "-7.55", 
        "percent_change_7d": "8.78", 
        "last_updated": "1517379253"
 }]

Some of the properties you may be interested in are as follows:

  • "market_cap_usd": Market cap in US dollars.
  • "available_supply": Circulating supply.
  • "total_supply": Total supply issued/mined.
  • "max_supply": Total supply the platform/protocol currently allows for.
  • Thanks to you and @Adam for the info - I started off using CryptoCompare and just can't find how to get "Market Cap" data for any coins; figured they would provide "circulating supply" so I could calculate it manually, but they don't seem to provide that data. – vikzilla Jan 31 '18 at 16:33
  • Can "Market Cap" be calculated by multiplying "price" x "total supply"? It seems to be correct when using those values from Cryptocompare.. although I thought you had to use "circulating supply"; not "total supply"... – vikzilla Feb 1 '18 at 5:44
  • Market Capitalization = Total Supply * Current Price. – A-Diddy Feb 1 '18 at 15:42
0

i am using cryptocompare too, not sure if it still helps but I believe they have a new page now https://min-api.cryptocompare.com/ go to price - > multiple symbols full data, marketcap for each coin is provided there.

0

I'd check out the Nomics API. It's free, has no rate limits, and gives you more historical data (for free) that CoinMarketCap makes available on it's most expensive plan.

Nomics' free (and paid) crypto exchange data API comes with dozens of endpoints, including endpoints that return sparkline, exchange rate, all-time high (ATH), and supply data. Also included are historic candle/OHLC data for cryptoasset trading pairs on exchanges like Bithumb, Binance, Bittrex, Bitfinex, Bitflyer, Gate.io, Coinbase Pro/GDAX, Gemini, HitBTC, Kraken, and Poloniex.

One notable difference between Nomics’ API and competition is that the Nomics product has no rate limits. For example, CryptoCompare and CoinMarketCap’s APIs all limit the number of application programming interface calls that can be made per minute, whereas Nomics does not currently impose such limits.

Disclosure: I'm one of the founders of Nomics.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.