Need a shell script to display the current LiteCoin Price?
Shell Script for LiteCoin Price
If you track cryptocurrencies, you’ll want to keep an eye on the current prices throughout the day.
Here is a quick and dirty script to pull the current LiteCoin price. This will allow for uses such as displaying the current LTC price in your XFCE taskbar using XFCE4 Generic Monitor applet?
The Script:
#!/bin/sh
curl -s https://api.kraken.com/0/public/Ticker?pair=LTCUSD |awk -F ‘”‘ ‘{printf(“%.2f\n”, $10)}’
curl -s https://api.kraken.com/0/public/Ticker?pair=LTCUSD |awk -F ‘”‘ ‘{printf(“%.2f\n”, $10)}’
Enjoy this script to grab the latest LiteCoin (LTC) price!
As an Amazon Associate I earn from qualifying purchases. Read our Privacy Policy for more info.