Skip to content

Instantly share code, notes, and snippets.

@rdegges
Created July 21, 2017 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdegges/aa597558b24bd7045a103cc9e17bb054 to your computer and use it in GitHub Desktop.
Save rdegges/aa597558b24bd7045a103cc9e17bb054 to your computer and use it in GitHub Desktop.
coinmarketcap API example
$ curl https://api.coinmarketcap.com/v1/ticker/?limit=10
[
{
"id": "bitcoin",
"name": "Bitcoin",
"symbol": "BTC",
"rank": "1",
"price_usd": "2747.54",
"price_btc": "1.0",
"24h_volume_usd": "2242640000.0",
"market_cap_usd": "45223373666.0",
"available_supply": "16459587.0",
"total_supply": "16459587.0",
"percent_change_1h": "-2.83",
"percent_change_24h": "19.78",
"percent_change_7d": "17.2",
"last_updated": "1500596647"
},
{
"id": "ethereum",
"name": "Ethereum",
"symbol": "ETH",
"rank": "2",
"price_usd": "225.419",
"price_btc": "0.0802372",
"24h_volume_usd": "2149540000.0",
"market_cap_usd": "21061257460.0",
"available_supply": "93431598.0",
"total_supply": "93431598.0",
"percent_change_1h": "1.0",
"percent_change_24h": "10.68",
"percent_change_7d": "9.45",
"last_updated": "1500596646"
},
{
"id": "ripple",
"name": "Ripple",
"symbol": "XRP",
"rank": "3",
"price_usd": "0.186567",
"price_btc": "0.00006641",
"24h_volume_usd": "179154000.0",
"market_cap_usd": "7143909346.0",
"available_supply": "38291387790.0",
"total_supply": "99994578575.0",
"percent_change_1h": "-1.07",
"percent_change_24h": "10.87",
"percent_change_7d": "-5.65",
"last_updated": "1500596640"
},
{
"id": "litecoin",
"name": "Litecoin",
"symbol": "LTC",
"rank": "4",
"price_usd": "44.9924",
"price_btc": "0.016015",
"24h_volume_usd": "354291000.0",
"market_cap_usd": "2343620703.0",
"available_supply": "52089257.0",
"total_supply": "52089257.0",
"percent_change_1h": "0.38",
"percent_change_24h": "9.14",
"percent_change_7d": "-1.74",
"last_updated": "1500596641"
},
{
"id": "ethereum-classic",
"name": "Ethereum Classic",
"symbol": "ETC",
"rank": "5",
"price_usd": "15.933",
"price_btc": "0.00567131",
"24h_volume_usd": "135730000.0",
"market_cap_usd": "1493687219.0",
"available_supply": "93748021.0",
"total_supply": "93748021.0",
"percent_change_1h": "-0.1",
"percent_change_24h": "6.28",
"percent_change_7d": "-12.04",
"last_updated": "1500596649"
},
{
"id": "dash",
"name": "Dash",
"symbol": "DASH",
"rank": "6",
"price_usd": "187.169",
"price_btc": "0.0666225",
"24h_volume_usd": "98906300.0",
"market_cap_usd": "1392233909.0",
"available_supply": "7438379.0",
"total_supply": "7438379.0",
"percent_change_1h": "1.14",
"percent_change_24h": "18.25",
"percent_change_7d": "9.99",
"last_updated": "1500596653"
},
{
"id": "nem",
"name": "NEM",
"symbol": "XEM",
"rank": "7",
"price_usd": "0.153461",
"price_btc": "0.00005462",
"24h_volume_usd": "3540690.0",
"market_cap_usd": "1381149000.0",
"available_supply": "8999999999.0",
"total_supply": "8999999999.0",
"percent_change_1h": "-1.48",
"percent_change_24h": "19.41",
"percent_change_7d": "25.9",
"last_updated": "1500596645"
},
{
"id": "iota",
"name": "IOTA",
"symbol": "MIOTA",
"rank": "8",
"price_usd": "0.297348",
"price_btc": "0.00010584",
"24h_volume_usd": "10495600.0",
"market_cap_usd": "826487771.0",
"available_supply": "2779530283.0",
"total_supply": "2779530283.0",
"percent_change_1h": "3.42",
"percent_change_24h": "26.38",
"percent_change_7d": "44.04",
"last_updated": "1500596655"
},
{
"id": "monero",
"name": "Monero",
"symbol": "XMR",
"rank": "9",
"price_usd": "40.9496",
"price_btc": "0.0145759",
"24h_volume_usd": "15122100.0",
"market_cap_usd": "606511122.0",
"available_supply": "14811161.0",
"total_supply": "14811161.0",
"percent_change_1h": "1.22",
"percent_change_24h": "16.15",
"percent_change_7d": "8.27",
"last_updated": "1500596643"
},
{
"id": "stratis",
"name": "Stratis",
"symbol": "STRAT",
"rank": "10",
"price_usd": "5.28046",
"price_btc": "0.00187957",
"24h_volume_usd": "11659100.0",
"market_cap_usd": "519972659.0",
"available_supply": "98471091.0",
"total_supply": "98471091.0",
"percent_change_1h": "2.0",
"percent_change_24h": "32.54",
"percent_change_7d": "48.68",
"last_updated": "1500596649"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment