Bitcoin bash script (Bash script price ticker)

in bitcoin •  last year


In this post, i will show you how to create your own Bitcoin price ticker, in 3 different currencies. It's a bash script so this tutorial is mainly intended for Linux users.

A while back, i was browsing the web to find a bash script that gave the price of Bitcoin instantly. I did find one created by David Walsh.
This script uses the coinsdesk api but after giving the result, it goes back to prompt right away. What i wanted was a script that didn't go back to prompt but would refresh the price every 5 seconds. I also wanted to have the price not only in US dollars but also in Euro and Great Britain Pound. So here's how to achieve this.

Open terminal and type the following:


Then, go to my github.
copy the code and paste in terminal.
Next, save the script with Ctrl + x then y then press enter. You must now make it executable with the following:
chmod +x

Now you can launch the script and it will refresh (restart) every 5 seconds. Just type ./ in terminal and the script will start. You can reduce the size of your terminal window and leave it in a corner of your screen and have instant access to the average price of Bitcoin.

Hope you liked this tutorial. Have a great day everyone!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

interesting. can i convert it to Indonesian Rupiah?