diff options
Diffstat (limited to 'gold/mtgox')
-rwxr-xr-x | gold/mtgox/json_ticker_helper.py | 7 | ||||
-rwxr-xr-x | gold/mtgox/ticker_text.sh | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/gold/mtgox/json_ticker_helper.py b/gold/mtgox/json_ticker_helper.py deleted file mode 100755 index 727dd594..00000000 --- a/gold/mtgox/json_ticker_helper.py +++ /dev/null @@ -1,7 +0,0 @@ -#!/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/gold/mtgox/ticker_text.sh b/gold/mtgox/ticker_text.sh index 2bcac134..f585ffea 100755 --- a/gold/mtgox/ticker_text.sh +++ b/gold/mtgox/ticker_text.sh @@ -1,3 +1,4 @@ -#!/bin/sh -dirname=`dirname $(readlink -f $0)` -$dirname/mtgox.ticker | python $dirname/json_ticker_helper.py +#! /bin/sh +set -euf +cd $(dirname `readlink -f $0`) +./mtgox.ticker | ../json/render/ticker |