This project is used to monitor coins listed on https://coinmarketcap.com/.
- Git
- Go
Open a terminal and run the following commands:
git clone https://github.com/ecstatic-nobel/Coin-Market-Monitor.git
cd Coin-Market-Monitor
then run:
chmod u+x cmm
./cmm
or:
go get github.com/olekukonko/tablewriter
go run cmm.go
You will get the following output:
To monitor different coins, change the contents of coins.txt
(or any file containing a list of coin names) and run the following command:
./cmm -f coins.txt
To remove the project completely, run the following commands:
rm -rf Coin-Market-Monitor
CoinMarketCap currently asks that requests to the API are limited to 10 per minute. If there are more that 10 coins in the specified file, the script will only print 10 coins to the screen every 65 seconds. The site updates every 5 minutes.
Also, make sure that the coin names listed in the file are spelled the same as the id
. The top 100 coins and their id
can be found at https://api.coinmarketcap.com/v1/ticker/
. You may be able to find other names at https://coinmarketcap.com/currencies/COIN_NAME/#tools
under API Ticker
.