Skip to main content

Command line Cryptocurrency Portfolio

Project description

cryptopp is a lightweight command line based cryptocurrency portfolio. Built on Python 3 and ncurses with simplicity in mind, cryptop updates in realtime.

imgcryptop.png

version 1.0.1

Changes

This now requires a CryptoCompare.com and CoinMarketCap.com API key because of rate limits and extra data points.

See the Credits section on how to get an API key.

Added option for extra decimal places in .cryptop/config.ini based on currency.locale

Fixed + add coin user error to just add coin instead of error.

Added Market Cap from CoinMarketCap. API required.

Reads wallet every refresh and entry. Enables cryptop to be run on multiple computers from within a sharedrive.

Less url requests. Coin list is fetched every 10 days, instead of every coin addition. Speeds up processing of app.

TODO

  • Instead of using CC for 24h +/-, data already fetched from CMC in quote. Use CMC quote data for less requests.

  • Add average price paid within wallet. Requires an addition “history” wallet.

  • More historical portfolio changes.

  • Coin Value +/- with mrkt conditions.

  • History interface to interact with coin additions / subtractions.

Installation

Via Pip

pip3 install cryptopp

Or locally

cryptop requires Python 3 to run, and has only been tested in Python 3.6-3.10 so far.

First clone this repo

git clone https://github.com/GordianSimpul/cryptopp

Then install cryptop through pip

cd cryptopp
pip3 install -e .

Make sure $HOME/.local/bin is in your environment PATH variable.

Usage

Start from a terminal.

cryptopp [-k api_key] [-l api_key]

Follow the on screen instructions to add/remove or add/subtract values from your current wallet. The api_key options are only necessary if you didn’t specify it in the .cryptop/config.ini file. An initial run is necessary to copy over config.ini to the .cryptop directory.

.cryptop/config.ini

key=CryptoComare API KEY
key2=CoinMarketCap API KEY

Both of those need to edited o/w cryptop will not work.

Customisation

Cryptop creates two config files in a .cryptop folder in your home directory.

.cryptop/config.ini contains theme configuration (text/background colors) and options to change the output currency (default USD), update frequency, number of decimal places to display and maximum width for float values.

.cryptop/wallet.json contains the coins and amounts you hold, you shouldn’t need to edit it manually

Credits / API

Both are FREE.

Uses the cryptocompare.com API.

Uses the coinmarketcap.com API.

Tipjar

Help me reach my goal of contributing to the ongoing development of privacy coins

XMR: 83az9t2fLjoC25d9UBUUiM1v6zemeKhjNf2Qw2Fnk1MFB3ecDx5oNVEG2tmdJJbxc97oAgjVbgCKHEgwTNFALh2c9jeWfdS
DERO: dero1qyxctkgzee00jh3md4etc8kxkr8x4hh7cckezrhn7de39kj4xaf9xqqa6xeta
BTC: bc1qfckkcnxxhxh5h0hnuc8gucymuvnxrw2a4traws
ARRR: zs1gn457262c52z5xa666k77zafqmke0hd60qvc38dk48w9fx378h4zjs5rrwnl0x8qazj4q3x4svz

Disclaimer

I am not liable for the accuracy of this program’s output nor actions performed based upon it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryptopp-1.0.5.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

cryptopp-1.0.5-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file cryptopp-1.0.5.tar.gz.

File metadata

  • Download URL: cryptopp-1.0.5.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for cryptopp-1.0.5.tar.gz
Algorithm Hash digest
SHA256 184a24466248606e944e3e2670924125703893c4f699559c0ab1408fca7f7cec
MD5 775d72711864d6669989466661f3700e
BLAKE2b-256 0512e782bfbc236bb720dd57b09f5e5431c0a7370e6494836accddefe1da8202

See more details on using hashes here.

File details

Details for the file cryptopp-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: cryptopp-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for cryptopp-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 54c58ea271406d31bb4da8fd6913aa867ea07f7fe4864151199abc156da5e6b4
MD5 6e1d6516f95fc34c50d7ba2c80d990e3
BLAKE2b-256 61427addd392ecfa7b8d0d08e5e34e8dd4151d2e6690adb9622e9b9242ecc8ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page