Giter VIP home page Giter VIP logo

krakbal's Introduction

KrakBal

Tiny commandline script to get your Kraken balance and current value in fiat

Installation

Make sure you have Python3 and pip installed Run in terminal:

git clone https://github.com/bluppfisk/krakbal && cd krakbal
python3 -m venv ./
source bin/activate
pip install -r requirements.txt

Usage

  1. Obtain an API key from https://www.kraken.com/u/settings/api and allow it read access to private data: balance
  2. Create a kraken.key file and paste the API key on the first line, the secret on the second
  3. Run python3 krakbal.py or ./krakbal.py

Flags

  • -c allows you to specify a currency other than the default EUR, e.g. USD, GBP, CAD (see Limitations)
  • -k allows you to specify a key file other than the default kraken.key

Example:

python3 krakbal.py -c usd -k kraken.key

Limitations

  • Kraken currently only has complete conversion data for its crypto assets into USD and EUR. For all but the biggest assets, CAD and GBP conversion is not available.

Known Issues

  • If the account holds a balance in EUR and the display currency is USD (and vice-versa), the call will fail as it tries to obtain the rate for XUSDZEUR which is not a valid pair on Kraken. Fix: determine if there's a necessity to convert between two fiat currencies and, if so, request additional rates for BTC to balance currency and BTC to display currency. Determine the exchange rate between the two fiat currencies with BTC as a proxy by dividing the one balance by the other.

krakbal's People

Contributors

bluppfisk avatar dependabot[bot] 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.