Code Monkey home page Code Monkey logo

cryptogains's Introduction

CryptoGains

A very simple Cross-platform Command Line BitPanda portfolio viewer. The main use case is to see the total gain of any cryptocurrencies you have bought using the BitPanda Brokerage service, by comparing the price paid, with the current value of the coins. This view is currently not available within BitPanda itself, and therefore I decided to write this small utility.

You will need to create an API Key within BitPanda, with the transactions scope defined, and then set it as an Environment Variable with key BITPANDA.

CryptoGains will try to get all transactions from BitPanda, and then aggregate any purchases made by Coin. For example, if I bought 50 Cardano ADA coins for 0,50 € each, and then at a later date bought 100 Cardano ADA for 0,60 € each, it will show as 150 ADA bought for 85,00 €. It will then calculate the current price for all 150 ADA, and also show the difference as a number, but also as a percentage.

Additionally, if you have withdrawn any coins out from the BitPanda wallets, it will ask you if you still own that many elsewhere. You can then opt to change the amount, and the total current value column will be calculated based on how many you say you have.

After that, it will also ask if you own any other cryptocurrencies not bought with BitPanda, so these can be shown as well. You can only choose from coins supported by BitPanda as the prices for each coin are calculated based on BitPanda data.

Example screenshot:

sample


Installation and Usage

  • Tested on Linux and Windows.

  • Should work on Mac, but have not personally tested it

  • Download the binary for your system from the releases section

  • Put it in any directory

  • Open your favorite terminal or command line program

  • Navigate to where the file is located.

  • The first time you run it, it will take slightly longer to bootstrap. Every subsequent run should be fast

  • Run it. It will prompt you for first time usage

  • Make sure to either have set the BITPANDA environment variable with your API key, or have it ready to paste when it asks you for it


Building from source

It is implemented using F# on .Net 5. Development is also completely cross-platform. Requires the .Net 5 SDK from here

  • Clone the repository
  • Run dotnet build

Potential error:

If you see an error that looks similar to the following:

Expecting an object with a field named `data` but instead got:
    {
        "errors": [
        {
            "status": 401,
            "code": "unauthorized",
            "title": "Credentials/Access token wrong"
        }]
    }"

Then your BitPanda API Key is likely wrong or missing


Donations

Donations are greatly appreciated, but not needed at all. Please only donate if you are in a position to be able to afford it, and only if you truly believe in the gift of giving.

Liberapay: Liberapay

Ethereum: 0x05f231D19c19A2111fe03c923F26813Bad43B57f

Cardano ADA: addr1qx35nmy62dfp3n5tqgga92gxcnq5vkvflw963yg7fm5e5my68x9frc2qq0r8nstjtnjcrcnpmtpzwvp0sqz46y4ykrmqrd4dg9

Litecoin: MSaBzQ81tVmbPhcqwh2hnvzsXDE4LYq63W

cryptogains's People

Contributors

kait-z avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.