aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xfetch_rates.sh2
2 files changed, 3 insertions, 0 deletions
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