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:

LTC.sh
#!/bin/sh
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.

Leave a Reply

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