From 26a8814cb9a267e3d44fb9d09f02da4c70af8600 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 14 Jun 2014 20:13:07 -0700 Subject: Fetch rates script --- .gitignore | 1 + fetch_rates.sh | 2 ++ 2 files changed, 3 insertions(+) create mode 100755 fetch_rates.sh diff --git a/.gitignore b/.gitignore index 268d1c42..ba50368a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ builtAssets database.json sequelize.coffee npm-debug.log +rates.json diff --git a/fetch_rates.sh b/fetch_rates.sh new file mode 100755 index 00000000..83d60a3e --- /dev/null +++ b/fetch_rates.sh @@ -0,0 +1,2 @@ +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +curl -k https://api.bitcoinaverage.com/exchanges/all > $DIR/rates.tmp && mv $DIR/rates.tmp $DIR/rates.json -- cgit v1.2.3