You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
358 B
19 lines
358 B
#!/usr/bin/python2.6
|
|
|
|
import urllib
|
|
import sys
|
|
import json
|
|
import decimal
|
|
|
|
def main(argv):
|
|
current = fetch_mtgox_orders()
|
|
|
|
def fetch_mtgox_orders():
|
|
url = 'https://mtgox.com/code/data/getDepth.php'
|
|
parsed = json.loads(
|
|
urllib.urlopen(url).read(),
|
|
parse_float=decimal.Decimal
|
|
)
|
|
print repr(parsed)
|
|
|
|
sys.exit(main(sys.argv))
|
|
|