Home » Scripts » Shell Script for LiteCoin Price

Shell Script for LiteCoin Price

Shell Script for LiteCoin PriceNeed 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?

LTC Price displayed on the XFCE4 Generic Monitor applet, on my taskbar

The Script:

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!

Was this helpful?
If you found my posts interesting, or I helped you figure something out, please consider tossing me a tiny gratuity for my time, research, to help offset the web hosting/development costs or to buy me a cup of coffee.

* This post may contain affiliate links. This means that I “might” receive a tiny amount of money, if you make a purchase using one of our links. It does not cost you anything extra, and helps us defray the costs of hosting and maintaining this site.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.