Skip to content

Instantly share code, notes, and snippets.

@kostaspt
Created August 22, 2017 17:37
Show Gist options
  • Save kostaspt/132cfc8b26d188cf82672bac4ca97558 to your computer and use it in GitHub Desktop.
Save kostaspt/132cfc8b26d188cf82672bac4ca97558 to your computer and use it in GitHub Desktop.
Alias to get the current Ethereum price from Coinbase
alias eth_price="curl --silent -XGET https://api.coinbase.com/v2/prices/ETH-EUR/buy | python3 -c \"import sys, json; print(json.load(sys.stdin)['data']['amount'] + '€')\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment