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 | c4633ce724b842e891e181e2bc5f7d6c13244b61 (patch) | |
tree | e9399544b509ae3b7095df476e9975abb2b2d53b /btc/mtgox/json_ticker_helper.py | |
parent | 310bb0cd4520711d8cc8e6fbaa51fb261a0ab24e (diff) | |
parent | 9fdb1fc7da782eba9a61da55349cd814f8fb13da (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"]) |