Skip to content

Instantly share code, notes, and snippets.

@erdostom
Created December 11, 2013 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erdostom/7916450 to your computer and use it in GitHub Desktop.
Save erdostom/7916450 to your computer and use it in GitHub Desktop.
Alias for checking Coinbase BTC spot rate on *NIX systems. Copy and paste into ~/.bash_profile and restart terminal. Use with the command 'cbase'
#use in ~./bash_profile
alias cbase="curl -s https://coinbase.com/api/v1/prices/spot_rate | sed -n 's/.*amount"'":"\([0-9]*.[0-9]*\)".*$/Coinbase price: \1/pg'"'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment