Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 2.08 KB

README.md

File metadata and controls

66 lines (45 loc) · 2.08 KB

Coinmon-go

Go Report Card GitHub all releases GitHub repo size GitHub go.mod Go version GitHub release (latest by date) GitHub commit activity codecov

Table of Contents

Get live Crypto Currency prices in the terminal with the quickness

Install

If you have a version of golang >= 16.X you can install with

go install github.com/mr-pmillz/coinmon-go@latest

If using an older version of golang

go get github.com/mr-pmillz/coinmon-go@latest

To build from source, clone the repo and run

go build

Coinmon-go now uses the CoinMarketCap API

  • Create a Free API Key
  • add it as an env var (config file support coming soon)
  • COINMARKETCAP_API_KEY=foo-bar-baz

Reason for switching is the data is more accurate than the coincap api and cmc api has more rich functionality. If you don't add the COINMARKETCAP_API_KEY to your env vars, coin prices wont show.

Usage

./coinmon-go -h
Options:

  -h, --help       display help information
  -t, --top[=10]   Amount of coins to show data for, Default is top 10, If -f|--find flag supplied, -t|--top is ignored
  • Get Top 20 Coins
./coinmon-go -t 20
  • By default, ./coinmon-go with no arguments will just return the top 10 coins by market cap