summaryrefslogtreecommitdiffstats
path: root/btc/mtgox/json_ticker_helper.py
diff options
context:
space:
mode:
authorroot <root@krebs>2011-08-22 01:30:11 +0200
committerroot <root@krebs>2011-08-22 01:30:11 +0200
commit38d7fd3277096c94c82a6dfff009edfe6bc1b57e (patch)
treea8124691d18122070226e3c4a18b82bacfb49ef6 /btc/mtgox/json_ticker_helper.py
parentd6ce89c25e80e42357667df0cafc4d406f777ab8 (diff)
parent5e102279a72d77305d84f3cab9aef464a76ecb68 (diff)
Merge branch 'master' of github.com:/krebscode/painload
Diffstat (limited to 'btc/mtgox/json_ticker_helper.py')
-rwxr-xr-xbtc/mtgox/json_ticker_helper.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/btc/mtgox/json_ticker_helper.py b/btc/mtgox/json_ticker_helper.py
new file mode 100755
index 00000000..727dd594
--- /dev/null
+++ b/btc/mtgox/json_ticker_helper.py
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+
+import json,sys
+
+result = json.load(sys.stdin)
+
+print "High: " + str(result["ticker"]["high"]) + " Low: " + str(result["ticker"]["low"]) + " Last: " + str(result["ticker"]["last"])