diff options
| author | Adam Soltys <[email protected]> | 2014-06-14 20:13:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2014-06-14 20:13:07 -0700 |
| commit | 26a8814cb9a267e3d44fb9d09f02da4c70af8600 (patch) | |
| tree | fe195ac1153a5c6f81bc30a4c9b49819c9061551 | |
| parent | 2340e1f684114a364b1888e2f46418e512a71d9c (diff) | |
| download | coinos-server-26a8814cb9a267e3d44fb9d09f02da4c70af8600.tar.gz coinos-server-26a8814cb9a267e3d44fb9d09f02da4c70af8600.zip | |
Fetch rates script
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | fetch_rates.sh | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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 |
