This repository has been archived by the owner. It is now read-only.

crystal-cmc

A CLI app that displays prices of various tokens built using Crystal

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_KEY to your CoinMarketCap API key.
  • Set TOKENS to the cryptocurrency symbol (as a comma-separated list) whose data should be fetched and displayed. The default value is BTC,ETH.

Usage

Run with basic info

./cmc

Run with additional info

./cmc -f        # same as `./cmc --full`

License

Unlicense

Contributors

Repository

crystal-cmc

Owner
Statistic
  • 2
  • 0
  • 0
  • 0
  • 2
  • about 2 years ago
  • September 30, 2017
License

The Unlicense

Links
Synced at

Thu, 07 Nov 2024 22:07:46 GMT

Languages