Created
October 26, 2014 15:19
-
-
Save drguildo/1df43e0ee8cdfc64b5b2 to your computer and use it in GitHub Desktop.
Ð Value Checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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