Bash Script to pull Latest Chia price from CoinMarketCap

 Bash Script to pull Latest Chia price from CoinMarketCap



This Bash script will pull down the latest price for XCH from the CoinMarketCap and display it.





Here is the script:

#!/bin/bash

# Get current price from CoinMarketCap

content=`curl -s https://coinmarketcap.com/currencies/chia-network/`

value=`echo $content | cut -d'$' -f 6 | cut -d'<' -f 1`

echo "$value"




Want to help support?

Comments

Popular posts from this blog

My Plotting Builds for Chia

Digging Deep into Chia Network

How to Install chia-dev-tools on Windows 10