CoinCapDev / CoinCap.io

API tools and documentation
734 stars 151 forks source link

CoinCap.io

This API will continue to operate as it has, but will be shut down on March 1, 2019. Our new API is: https://docs.coincap.io/


REST URLs

/coins

/map

/front

/global

/page/:coin

/history/:coin

/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
    }
}