summaryrefslogtreecommitdiffstats
path: root/btc/mtgox/json_ticker_helper.py
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-22 01:35:55 +0200
committermakefu <github@syntax-fehler.de>2011-08-22 01:35:55 +0200
commit9fdb1fc7da782eba9a61da55349cd814f8fb13da (patch)
tree6c13d965201dda73fde54ed9bcbe07867500cb17 /btc/mtgox/json_ticker_helper.py
parent0af010792cd6305ce776ac8a0da97a5f4790881c (diff)
mtgox: add ticker text script
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"])