Skip to content

Instantly share code, notes, and snippets.

@drguildo
Created October 26, 2014 15:19
Show Gist options
  • Save drguildo/1df43e0ee8cdfc64b5b2 to your computer and use it in GitHub Desktop.
Save drguildo/1df43e0ee8cdfc64b5b2 to your computer and use it in GitHub Desktop.
Ð Value Checker
import json
import string
import urllib2
data = urllib2.urlopen("http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=132")
doge = string.join(data.readlines())
doge = json.loads(doge)
doge = doge['return']['markets']['DOGE']
print(doge['lasttradetime'] + " " + doge['label'] + ": " + doge['lasttradeprice'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment