summaryrefslogtreecommitdiffstats
path: root/gold
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2014-12-20 22:36:43 +0100
committerlassulus <lass@aidsballs.de>2014-12-20 22:36:43 +0100
commitf0ee1f2a63be9238506ec15da655a6077caaa807 (patch)
tree57725139e32edd420037eb1fa09533f6f783995e /gold
parent3744f9de8cf4b719c60b07972a36bc5b3fbfc0be (diff)
RIP mtgox
Diffstat (limited to 'gold')
-rwxr-xr-xgold/mtgox/mtgox.getDepth3
-rwxr-xr-xgold/mtgox/mtgox.getTrades3
-rwxr-xr-xgold/mtgox/mtgox.ticker53
-rwxr-xr-xgold/mtgox/ticker_text.sh4
4 files changed, 0 insertions, 63 deletions
diff --git a/gold/mtgox/mtgox.getDepth b/gold/mtgox/mtgox.getDepth
deleted file mode 100755
index 9a607979..00000000
--- a/gold/mtgox/mtgox.getDepth
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-# get mtgox market depth
-$ curl -ksS https://mtgox.com/code/data/getDepth.php
diff --git a/gold/mtgox/mtgox.getTrades b/gold/mtgox/mtgox.getTrades
deleted file mode 100755
index 73e5a68d..00000000
--- a/gold/mtgox/mtgox.getTrades
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-# get mtgox last trades
-$ curl -ksS https://mtgox.com/code/data/getTrades.phl
diff --git a/gold/mtgox/mtgox.ticker b/gold/mtgox/mtgox.ticker
deleted file mode 100755
index 208d2764..00000000
--- a/gold/mtgox/mtgox.ticker
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /bin/sh
-# 2012-06-07 ~tv@iiso:bin/mtgox.ticker
-set -euf
-
-Currency=${Currency-EUR}
-
-# continuous ticker
-## usage: mtgox.ticker -f [time] [json-path...]
-if test $# -ge 1 && test "$1" = -f; then
- shift
- time=`echo "$1" | grep '^[1-9][0-9]*[h]\?$'` && shift || time=60
- echo -n "# sleep time: $time"
- while echo -n "
-`date --rfc-3339=s` `"$0" "$@"`"; do
- sleep $time
- done
- exit
-fi
-
-# 2012-11-17 tv /krebs/gold/mtgox/mtgox.ticker
-ticker() {
- curl -ksS https://data.mtgox.com/code/data/ticker.php?Currency=$Currency
-}
-# 2012-11-17 tv ~mw*@iiso:Espresso-phonegap/package/bin/json-print
-print() {
- node -e "
-// 2012-11-17 tv
-//filename = process.argv[2]
-filename = process.argv[1]
-jsonpath = []
-value = JSON.parse(require('fs').readFileSync(filename))
-// 2012-11-17 tv
-//process.argv.slice(3).forEach(function (key) {
-process.argv.slice(2).forEach(function (key) {
- value = value[key]
- jsonpath.push(key)
- if (typeof value === 'undefined') {
- console.error(filename + ':', jsonpath.join('.'), 'is', value)
- process.exit(23)
- }
-})
-
-console.log(JSON.stringify(value, null, 2))
-" "$@"
-}
-
-# ticker
-## usage: mtgox.ticker [json-path...] -> json
-# 2012-11-17 tv
-#/krebs/gold/mtgox/mtgox.ticker |
-# ~mw*@iiso:Espresso-phonegap/package/bin/json-print /dev/stdin ticker "$@"
-ticker |
- print /dev/stdin ticker "$@"
diff --git a/gold/mtgox/ticker_text.sh b/gold/mtgox/ticker_text.sh
deleted file mode 100755
index f585ffea..00000000
--- a/gold/mtgox/ticker_text.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/sh
-set -euf
-cd $(dirname `readlink -f $0`)
-./mtgox.ticker | ../json/render/ticker