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

Digging Deep into Chia Network

How to setup a Chia Harvester

My Plotting Builds for Chia