Skip to content

ecstatic-nobel/Coin-Market-Monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Coin Market Monitor]

Simple terminal-based monitor of Coin Market Cap written in Go.

Description

This project is used to monitor coins listed on https://coinmarketcap.com/.

Prerequisites

  • Git
  • Go

Setup

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:

alt text

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

Destroy

To remove the project completely, run the following commands:

rm -rf Coin-Market-Monitor

Limitations

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.