coin_market_monitor

command module
v0.0.0-...-e863c59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2019 License: MIT Imports: 10 Imported by: 0

README

[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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL