Skip to content

Instantly share code, notes, and snippets.

@npinto
Last active December 27, 2015 20:09
Show Gist options
  • Save npinto/7381747 to your computer and use it in GitHub Desktop.
Save npinto/7381747 to your computer and use it in GitHub Desktop.
#!/bin/bash
watch -n 10 'curl https://data.mtgox.com/api/2/BTCUSD/money/ticker | tee data/ticker.$(date +"%Y-%m-%d_%R:%S.%N").json | python -mjson.tool; for f in data/*.json; do gzip $f; done;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment