cdash
A minimalist cryptocurrency portfolio dashboard for the command-line that draws
market data from the CoinMarketCap API.
Installing
- Visit the Releases page
- Download the appropriate executable
- Optionally rename the downloaded executable
- 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.