Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

croccifixio/crystal-cmc

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published