summaryrefslogtreecommitdiffstats
path: root/btc/mtgox/json_ticker_helper.py
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-22 12:48:27 +0200
committertv <tv@xso>2011-08-22 12:48:27 +0200
commit624a21ce26f49950594f4c072d81cb73e29a18fa (patch)
tree61e2ac2d7069e0cffdda8c7c038aa2e1288f9a8e /btc/mtgox/json_ticker_helper.py
parent45ceee319c70522d821f65505735bc514d123df5 (diff)
parent9fdb1fc7da782eba9a61da55349cd814f8fb13da (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"])