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? | |
Chia (XCH): | xch1xz9g7cyy79vnrh6nuyh86jq4ps6ah2ny0ck2050wfqqfjwkyk0mqd89etp |
HDDcoin (HDD): | hdd19vatjqxka49c5lht6nrf2cqc94va6rf9vv2mzu2793vq4dwq8wes842qff |
Bitcoin (BTC) no fee on Coinbase: | 3ADGMs1i6MU8Bxnr8qC6CPmgTUAS6DevyT |
Etherium (ETH) no fee on Coinbase: | 0x1F604e5a010f42F36e0C24868454f08056bc5B0A |
Venmo: | @steppsr |
Cash App: | $StevenStepp |
![]() |
Comments
Post a Comment