diff options
author | tv <tv@xso> | 2011-08-22 12:48:27 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-08-22 12:48:27 +0200 |
commit | c2117a9064fcee0d287fbd8d164eef57d6b6c275 (patch) | |
tree | 60eda265a3ee69195c86ce8d1ee16c014fd75d52 /btc | |
parent | 45ceee319c70522d821f65505735bc514d123df5 (diff) | |
parent | 5e102279a72d77305d84f3cab9aef464a76ecb68 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'btc')
-rwxr-xr-x | btc/mtgox/json_ticker_helper.py | 7 | ||||
-rwxr-xr-x | btc/mtgox/ticker_text.sh | 3 |
2 files changed, 10 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"]) diff --git a/btc/mtgox/ticker_text.sh b/btc/mtgox/ticker_text.sh new file mode 100755 index 00000000..2bcac134 --- /dev/null +++ b/btc/mtgox/ticker_text.sh @@ -0,0 +1,3 @@ +#!/bin/sh +dirname=`dirname $(readlink -f $0)` +$dirname/mtgox.ticker | python $dirname/json_ticker_helper.py |