Skip to content

Instantly share code, notes, and snippets.

@teklordz
teklordz / coindesk.sh
Last active Jul 7, 2020
Bitcoin prices in real time from the coindesk website api (bash script)
View coindesk.sh
#!/bin/bash
# Credit to David Walsh for the original script <https://davidwalsh.name/bitcoin>
# The improved version of David's script doesn't go back to prompt. It keeps refreshing the prices every 5 seconds.
# Prices are in USD, EUR & GBP (in real time)
# curl must be installed in terminal
clear
echo "Coindesk BTC: "
echo " USD EUR GBP "
while [ 1 ]
You can’t perform that action at this time.