From 5e102279a72d77305d84f3cab9aef464a76ecb68 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 22 Aug 2011 01:35:55 +0200 Subject: mtgox: add ticker text script --- btc/mtgox/json_ticker_helper.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 btc/mtgox/json_ticker_helper.py (limited to 'btc/mtgox/json_ticker_helper.py') 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"]) -- cgit v1.2.3