diff options
author | root <root@krebs> | 2011-08-22 01:30:11 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-08-22 01:30:11 +0200 |
commit | 38d7fd3277096c94c82a6dfff009edfe6bc1b57e (patch) | |
tree | a8124691d18122070226e3c4a18b82bacfb49ef6 /btc/mtgox/json_ticker_helper.py | |
parent | d6ce89c25e80e42357667df0cafc4d406f777ab8 (diff) | |
parent | 5e102279a72d77305d84f3cab9aef464a76ecb68 (diff) |
Merge branch 'master' of github.com:/krebscode/painload
Diffstat (limited to 'btc/mtgox/json_ticker_helper.py')
-rwxr-xr-x | btc/mtgox/json_ticker_helper.py | 7 |
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"]) |