summaryrefslogtreecommitdiffstats
path: root/gold/mtgox
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-24 17:01:38 +0200
committertv <tv@xso>2011-08-24 17:01:38 +0200
commit28fbd9a5f090c52766d0e4ef1014f3356e188656 (patch)
treed4f40a60cb311588f096dec74335a4473f2f6c43 /gold/mtgox
parent77b129d0f8958149bb2a876c574b1d3d9c671bc8 (diff)
gold: add scex ticker_text.sh
Diffstat (limited to 'gold/mtgox')
-rwxr-xr-xgold/mtgox/json_ticker_helper.py7
-rwxr-xr-xgold/mtgox/ticker_text.sh7
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