added bitcoin inflation chart csv generation script

This commit is contained in:
2011-06-16 12:18:25 +02:00
parent 426a39022a
commit 3cac5142f1
3 changed files with 96 additions and 0 deletions

19
bitcoin.shallow/generate.py Executable file
View File

@@ -0,0 +1,19 @@
#!/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))