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.2.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryptopp-1.0.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cryptopp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 37714d1f3b9f2b755a115b073e244dcf00c25954192d0c5afdc4a242013d317b
MD5 3a924f070af52b3d27fe1dd895156516
BLAKE2b-256 bf7d8afc8e21064134ea5719a5511fb774329d8395802e88c73d34a2d84d7c40

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cryptopp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94c1aafc166f5e14ae357e6f22406ae5d1b4756eae9b2d34469c89a1a245c62f
MD5 4b1d9bd2f5b864ff8e3c357825cb864e
BLAKE2b-256 bf70769d4270816c6e72a7947ac5b773a5f5cd3dc4ba28d26779a62e6bbf495f

See more details on using hashes here.

Supported by

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