Giter Site home page Giter Site logo

coincap.io's Introduction

CoinCap.io

API tools and documentation

REST URLs

/coins

  • Description: Array of all supported coins
  • URL: http://coincap.io/coins
  • Response:
    ["300", "611", "808", "888", "INPAY", "XNG", "ARGUS", "DBIX", "DAR", "HMQ"]

/map

  • Description: JSON object of Coin symbols/names and known aliases
  • URL: http://coincap.io/map
  • Response:
    [
        {
            "aliases": [],
            "name": "300 Token",
            "symbol": "300"
        },
        {
            "aliases": [],
            "name": "SixEleven",
            "symbol": "611"
        },
        {
            "aliases": [],
            "name": "808Coin",
            "symbol": "808"
        }
    ]

/front

  • Description: Front Page Data of current coin stats
  • URL: http://coincap.io/front
  • Response:
    [
        {
            "cap24hrChange": -6.05,
            "long": "Bitcoin",
            "mktcap": 65173805891.25,
            "perc": -6.05,
            "price": 3934.85,
            "shapeshift": true,
            "short": "BTC",
            "supply": 16563225,
            "usdVolume": 2337600000,
            "volume": 2337600000,
            "vwapData": 3997.5639538606733,
            "vwapDataBTC": 3997.5639538606733
        },
        {
            "cap24hrChange": -6.59,
            "long": "Ethereum",
            "mktcap": 26016428866.32,
            "perc": -6.59,
            "price": 275.02,
            "shapeshift": true,
            "short": "ETH",
            "supply": 94598316,
            "usdVolume": 945732000,
            "volume": 945732000,
            "vwapData": 278.03921067242516,
            "vwapDataBTC": 278.03921067242516
        }
    ]

/global

  • Description: Global data
  • URL: http://coincap.io/global
  • Response:
    {
        "altCap": 70056946653.0021,
        "bitnodesCount": 9350,
        "btcCap": 65003614189.66167,
        "btcPrice": 3924.57472440673,
        "dom": 69.48,
        "totalCap": 135060560842.66382,
        "volumeAlt": 578834063.4608318,
        "volumeBtc": 1317521389.0430577,
        "volumeTotal": 1896355452.5038888
    }

/page/:coin

  • Description: must search by symbol ex BTC returns all data on a specific coin
  • URL: http://coincap.io/page/ETC
    {
        "altCap": 70977893975.02808,
        "bitnodesCount": 9350,
        "btcCap": 65149292318.25,
        "btcPrice": 3933.37,
        "dom": 69.49,
        "totalCap": 136127186293.27805,
        "volumeAlt": 579507047.7508223,
        "volumeBtc": 1319701715.2883158,
        "volumeTotal": 1899208763.0391374,
        "id": "ETC",
        "_id": "c2f0fa55-495c-41e2-ad77-c66545b6d584",
        "cap24hrChange": -2.45,
        "display_name": "Ethereum Classic",
        "status": "available",
        "supply": 95478079,
        "volume": 106044000,
        "vwap_h24": 14.584250499041465,
        "price_btc": 0.003659301940567121,
        "price_eth": 0.052350773626971485,
        "price_eur": 12.076,
        "price_usd": 14.334776791590517,
        "price_ltc": 0.2325328883760402,
        "price_zec": 0.06845529547566803,
        "market_cap": 1368656950.954846,
        "type": "cmc",
        "price": 14.1888
    }

/history/:coin

  • Description: Returns all history on a coin
  • URL: http://coincap.io/history/BTC
  • Response:
    {
        "market_cap": [
            [
                1504664370000,  // unix time (milliseconds)
                74300994770     // market cap
            ],
            [
                1504750775000,
                74594182198
            ]
        ],
        "price" : [
            [
                1504750775000,
                4507.45 
            ],
            [
                1504839280000,
                4599.26
            ]
        ],
        "volume": [
            [
                1504750775000,  
                2095800000   
            ],
            [
                1504839280000,
                1752760000
            ]
        ]
    }

/history/1day/:coin

/history/7day/:coin

/history/30day/:coin

/history/90day/:coin

/history/180day/:coin

/history/365day/:coin

Socket API

https://coincap.io

To connect to CoinCap WebSockets you must use socket.io-client 1.4.6 or another websocket client compatiable with that version of Socket.io

Sample code attached

Socket Response

{
	"coin": "XMR",
	"exchange_id": "bittrex",
	"market_id": "ETH_XMR",
	"message": {
		"coin": "XMR",
		"msg": {
			"cap24hrChange": -6.96,
			"long": "Monero",
			"mktcap": 1581966162.9998832,
			"perc": -6.96,
			"price": 113.18142493836066,
			"shapeshift": true,
			"short": "XMR",
			"supply": 15074975,
			"usdVolume": 46837300,
			"volume": 46837300,
			"vwapData": 109.52716734604815,
			"vwapDataBTC": 109.52716734604815
		}
	},
	"msg": {
		"cap24hrChange": -6.96,
		"long": "Monero",
		"mktcap": 1581966162.9998832,
		"perc": -6.96,
		"price": 113.18142493836066,
		"shapeshift": true,
		"short": "XMR",
		"supply": 15074975,
		"usdVolume": 46837300,
		"volume": 46837300,
		"vwapData": 109.52716734604815,
		"vwapDataBTC": 109.52716734604815
	}
}

coincap.io's People

Contributors

shapeshiftmatt avatar iamskippy0 avatar iratesiddhartha avatar erf avatar apense avatar realrasengan avatar jeremyburr avatar rohitjha avatar sebs avatar sochinecc avatar

Watchers

Alvar Laigna avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.