summaryrefslogtreecommitdiffstats
path: root/btc/mtgox/json_ticker_helper.py
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-24 01:59:20 +0200
committermakefu <github@syntax-fehler.de>2011-08-24 01:59:20 +0200
commitd3d0b0fe07fbd4dd2285796bd94ad5afdd494c7c (patch)
tree2724d5cd14d7c6d2bf925c7d451e80d84d12c4ae /btc/mtgox/json_ticker_helper.py
parent1288c00ac6048b180e959b56d1834f927417c552 (diff)
parentdf80b8badf01f971111ea3099e77862320fa5736 (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"])