Created
March 26, 2013 10:26
-
-
Save ramn/5244400 to your computer and use it in GitHub Desktop.
Watch Bitcoin last price (shell)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD='last=JSON.load(ARGF.read)["data"]["last"]["display"]; puts "#{Time.now}: #{last}"'; watch "curl https://data.mtgox.com/api/2/BTCUSD/money/ticker 2>/dev/null | ruby -r json -e '$CMD'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment