cdash

command module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2018 License: MIT Imports: 15 Imported by: 0

README

cdash

A minimalist cryptocurrency portfolio dashboard for the command-line that draws market data from the CoinMarketCap API.

screenshot

Installing

  1. Visit the Releases page
  2. Download the appropriate executable
  3. Optionally rename the downloaded executable
  4. Optionally place the executable on your system PATH

Configuring

Specify your holdings via a yml file structured as follows:

---
- symbol   : BTC
  holdings : 100

- symbol   : LTC
  holdings : 100

- symbol   : ETH
  holdings : 100

By default, cdash will attempt to open this file at ~/.config/cdash.yml. If you choose to store it elsewhere, provide cdash the approriate path using the --config option:

cdash --config=/path/to/cdash.yml
Ambiguous currency symbols

Some cryptocurrency symbols are not unique, which can cause problems due to ambiguity. To resolve this, cdash also allows currencies to be specified by CoinMarketCap id:

---
- symbol   : BTC
  holdings : 100

- symbol   : LTC
  holdings : 100

- symbol   : ETH
  holdings : 100

- id       : bitcoin-gold # symbol "BTG"
  holdings : 100

- id       : bitgem       # also symbol "BTG"
  holdings : 100

cdash will fail with an error if your config file contains references to ambiguous symbols.

Specifying the base currency

The base currency may be specified using the --base flag. The following currency codes are supported:

Code Currency
AUD Australia Dollar
BRL Brazil Real
CAD Canada Dollar
CHF Switzerland Franc
CLP Chile Peso
CNY China Yuan Renminbi
CZK Czech Republic Koruna
DKK Denmark Krone
EUR Euro Member Countries
GBP United Kingdom Pound
HKD Hong Kong Dollar
HUF Hungary Forint
IDR Indonesia Rupiah
ILS Israel Shekel
INR India Rupee
JPY Japan Yen
KRW Korea (South) Won
MXN Mexico Peso
MYR Malaysia Ringgit
NOK Norway Krone
NZD New Zealand Dollar
PHP Philippines Peso
PKR Pakistan Rupee
PLN Poland Zloty
RUB Russia Ruble
SEK Sweden Krona
SGD Singapore Dollar
THB Thailand Baht
TRY Turkey Lira
TWD Taiwan New Dollar
USD United States Dollar
ZAR South Africa Rand

The --base option is case-insensitive, and defaults to USD.

Windows Usage

cdash uses ANSI escape sequences for colorization. Windows users must take note to use a compatible shell.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL