A while ago, we published a guide about Cli-Fyi - a potentially useful command line query tool. Using Cli-Fyi, we can easily find out the latest price of a cryptocurrency and lots of other useful details. Today, we are going to see yet another cryptcurrency price checker tool called "Coinmon". Unlike Cli.Fyi, Coinmon is only for checking the price of various cryptocurrencies. Nothing more! Coinmon will check cryptocurrencies' prices, changes right from your Terminal. It will fetch all details from from coinmarketcap.com APIs. It is quite useful for those who are both Crypto investors and Engineers.
Make sure you have Node.js and Npm installed on your system. If you don’t have Node.js and/or npm installed on your machine, refer the following link to install them.
Once Node.js and Npm installed, run the following command from your Terminal to install Coinmon.
sudo npm install -g coinmon
Check Cryptocurrency Prices From Commandline
Run the following command to check the top 10 cryptocurrencies ranked by their market cap:
Sample output would be:
Like I said, if you run the coinmon without any parameters, it will display the top 10 cryptocurrencies. You can also find top top n cryptocurrencies, for example 20, by using "-t" flag.
coinmon -t 20
All prices will be displayed in USD by default. You can also convert price from USD to another currency by using "-c" flag.
For instance, to convert the prices to INR (Indian Rupee), run:
coinmon -c inr
Currently, Coinmon supports AUD, BRL, CAD, CHF, CLP, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, ILS, INR, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PKR, PLN, RUB, SEK, SGD, THB, TRY, TWD, ZAR currencies.
It is also possible to search the prices using the symbol of a cryptocurrency.
coinmon -f btc
Here, btc is the symbol of Bitcoin cryptocurrency. You can view the symbols of all available cryptocurrencies here.
For more details, refer coinmon's help section:
$ coinmon -h Usage: coinmon [options] Options: -V, --version output the version number -c, --convert [currency] Convert to your fiat currency (default: usd) -f, --find [symbol] Find specific coin data with coin symbol (can be a comma seperated list) (default: ) -t, --top [index] Show the top coins ranked from 1 - [index] according to the market cap (default: null) -H, --humanize [enable] Show market cap as a humanized number, default true (default: true) -h, --help output usage information
Hope this helps. More good stuffs to come. Stay tuned!