cmc
A simple CLI app that returns some data on various cryptocurrencies using the CoinMarketCap API.
Setup
Install Dependencies
shards
Create an Executable File
crystal build src/cmc.cr
Configure Environment Variables
Copy the .env.example file
cp .env.example .env
In the .env file:
- Set
X-CMC_PRO_API_KEYto your CoinMarketCap API key. - Set
TOKENSto the cryptocurrency symbol (as a comma-separated list) whose data should be fetched and displayed. The default value isBTC,ETH.
Usage
Run with basic info
./cmc
Run with additional info
./cmc -f # same as `./cmc --full`
License
Contributors
- Croccifixio - creator, maintainer