Terminal-based cryptocurrency tracker via the Coinbase Pro REST API
- cURL
- ncurses 5+
- cJSON
Create a .coinrc file in your home directory containing your portfolio data.
| Field | Description |
|---|---|
| symbol | the Coinbase symbol |
| quantity | how many coins you purchased |
| buy price | the price at which you purchased the coins |
NOTE: Lines beginning with a hash (#) are ignored.
#symbol quantity buy price
BTC-USD 0.47120589 30001
CGLD-USD 239.5 2.13
MATIC-USD 15384.615 0.325
To use a coinfile somewhere other than ~/.coinrc, pass its path as the first
command-line argument:
cointab /path/to/my-portfolio
Press q or Esc to quit. Prices refresh automatically every few seconds.
The project uses CMake (3.15 or newer):
cmake -S . -B build
cmake --build build
The executable is written to build/cointab. Remove the build
directory to discard build artifacts.
Install with CMake (defaults to /usr/local; override the location
with --prefix):
sudo cmake --install build
cmake --install build --prefix $HOME/.local
To uninstall (removes the files recorded when the project was installed):
sudo cmake --build build --target uninstall
