Skip to content

Instantly share code, notes, and snippets.

@markalfred
Last active March 12, 2016 03:06
Show Gist options
  • Save markalfred/5200e48630224bdbd26b to your computer and use it in GitHub Desktop.
Save markalfred/5200e48630224bdbd26b to your computer and use it in GitHub Desktop.
Ethereum Prices — Current and Alltime High
$.ajax('http://ethereumwisdom.com/data/chart/kraken_USD_1800.json?&rand=0.38954108371399343').then(function(data){var high = data.map(function(c) {return parseFloat(c.h)}).sort(function (a, b) { return a-b; }).reverse()[0]; var current = data[data.length-1].c; console.log('current:', current, 'high:', high)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment