All Projects → smechaab → Currencyviewer

smechaab / Currencyviewer

Licence: gpl-3.0
Short python framework that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Currencyviewer

Cryptocurrency Portfolio
Google Sheets automatic creation with Google Apps Script (GAS) for managing a cryptocurrency tracking spreadsheet with multi exchanges
Stars: ✭ 134 (+930.77%)
Mutual labels:  api, cryptocurrency, kraken, currency, exchange
Exchangesharp
ExchangeSharp is a powerful, fast and easy to use .NET/C# API for interfacing with many crypto currency exchanges. REST and web sockets are supported.
Stars: ✭ 489 (+3661.54%)
Mutual labels:  api, bitcoin, cryptocurrency, kraken, exchange
Algo Coin
Python library for algorithmic trading cryptocurrencies across multiple exchanges
Stars: ✭ 365 (+2707.69%)
Mutual labels:  bitcoin, cryptocurrency, kraken, exchange
My Token
📈Track token prices of your favorite exchanges in terminal!
Stars: ✭ 141 (+984.62%)
Mutual labels:  bitcoin, cryptocurrency, kraken, exchange
Ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Stars: ✭ 22,501 (+172984.62%)
Mutual labels:  api, bitcoin, cryptocurrency, exchange
Krypto Trading Bot
Self-hosted crypto trading bot (automated high frequency market making) written in C++
Stars: ✭ 2,589 (+19815.38%)
Mutual labels:  bitcoin, cryptocurrency, kraken, exchange
Multicurrencywallet
Bitcoin, Ethereum, ERC20 crypto wallets with Atomic Swap exchange. Release announce: https://twitter.com/SwapOnlineTeam/status/1321844352369500160
Stars: ✭ 136 (+946.15%)
Mutual labels:  bitcoin, cryptocurrency, wallet, exchange
Ccxt.net
CCXT.NET – CryptoCurrency eXchange Trading Library for .NET
Stars: ✭ 89 (+584.62%)
Mutual labels:  api, bitcoin, cryptocurrency, exchange
Coinnect
Coinnect is a Rust library aiming to provide a complete access to main crypto currencies exchanges via REST API.
Stars: ✭ 130 (+900%)
Mutual labels:  bitcoin, cryptocurrency, kraken, exchange
Python Poloniex
Poloniex API wrapper for Python 2.7 & 3
Stars: ✭ 557 (+4184.62%)
Mutual labels:  api, bitcoin, cryptocurrency, exchange
Ccxt Rest
Open Source Unified REST API of 100+ Crypto Exchange Sites (18k+ docker pulls) - https://ccxt-rest.io/
Stars: ✭ 210 (+1515.38%)
Mutual labels:  api, bitcoin, cryptocurrency, exchange
Coinbase Pro Node
Coinbase Pro API written in TypeScript and covered by tests.
Stars: ✭ 116 (+792.31%)
Mutual labels:  api, bitcoin, cryptocurrency, exchange
Crypto Exchange
Pulls together list of crypto exchanges to interact with their API's in a uniform fashion.
Stars: ✭ 241 (+1753.85%)
Mutual labels:  api, bitcoin, kraken, exchange
Cryptofeed
Cryptocurrency Exchange Websocket Data Feed Handler
Stars: ✭ 643 (+4846.15%)
Mutual labels:  bitcoin, cryptocurrency, kraken, exchange
Tribeca
A high frequency, market making cryptocurrency trading platform in node.js
Stars: ✭ 3,646 (+27946.15%)
Mutual labels:  bitcoin, cryptocurrency, exchange
Wolfbot
Crypto currency trading bot written in TypeScript for NodeJS
Stars: ✭ 335 (+2476.92%)
Mutual labels:  bitcoin, cryptocurrency, exchange
Bitcoinlib
Bitcoin Core RPC compatible, battle-tested .NET library and RPC wrapper for Bitcoin and Altcoins
Stars: ✭ 350 (+2592.31%)
Mutual labels:  bitcoin, cryptocurrency, exchange
Cashify
💸 Lightweight currency conversion library, successor of money.js
Stars: ✭ 329 (+2430.77%)
Mutual labels:  currency, converter, exchange
Donut
🏹 Dead-simple cross-platform cryptocurrency tracker.
Stars: ✭ 367 (+2723.08%)
Mutual labels:  bitcoin, cryptocurrency, exchange
Crypto Arbitrage
Automatic Cryptocurrency Trading Bot using Triangular or Exchange Arbitrages
Stars: ✭ 369 (+2738.46%)
Mutual labels:  bitcoin, cryptocurrency, exchange

Currency Viewer

This is a short python3 framework that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money. Variables and functions may help developpers to easily extract data from Kraken and process value conversions. It's also possible to store data in a csv file. Next feature will add high-level orders functions.

Any contribution in any way is welcome. Feel free to contribute to this project!

Author : smechaab

Contact : [email protected] If this script helped you or if you have any feedback, please don't hesitate to contact me.

Credits

This code is based on Krakenex Python3 API by veox: https://github.com/veox/python3-krakenex

  • v0.2.1

This is a tiny program I personally use it daily. It allows me to check my currencies without logging every 10 minutes on Kraken website. This is also very useful for developers on the Krakenex API thanks to dynamically extracted data.

Please note that you need to fill your kraken.key file with your API keys. You can easily generate a pair of keys on the Kraken website, see the API documentation : https://www.kraken.com/help/api

v0.2.1 Changes

Adding CSV log writing feature. Your data are now stored in data.csv by default which is located in the same directory. Providing more object-oriented code, thus more library-oriented.

Program features

  1. Displaying the different amount of crypto currencies you own on your Kraken wallet.

  2. Displaying the total crypto money you own in equivalent fiat money.

  3. Adapted to the crypto and fiat currencies you already own.

  4. If you don't own any fiat money on your Kraken wallet, it will be displayed the equivalent in USD.

  5. Working with multi-fiat currencies wallets.

  6. Writes data in a csv file located in the project folder (default : data.csv).

Installation

This package requires Python 3.3 or later, and needs krakenex library.

You can find a PyPI package available.

Using pip:

pip install currency-viewer

Example

See basic_example.py

from currency_viewer import currency_viewer as cv

a = cv.CurrencyViewer()
a.processCViewer(log=True, currency="USD", time="rfc1123")

This is aimed to be very easy to use.

It is also possible to call some intermediate functions :

  • processCViewer(self, log=True, currency="USD", time="rfc1123"): Main function to call, implies to call : collectData(), getMarketPrice(), processingConversion(), displayResults() and writeLog(). Returns nothing

  • collectData(self): Uses krakenex library get data from Kraken API in Json. Returns raw data, list of crypto in user's wallet, list of fiat in user's wallet

  • getXBTtoFiatPrice(self, fiat): Return XBT price for "fiat" input currency

  • getMarketPrice(self, crypto_index): Returns crypto price in XBT

  • updateFiatInTotal(self, fiat): Updates "total" dict table to add { Fiat_currency : Total_Wallet_Value }. Returns nothing

  • displayResults(self):

    • values (dict), total value of all crypto in XBT
    • total (dict), total value in fiat currencies

Interesting variables

  • currencies : List of differents currencies owned by user
  • balance : List of the differents amount of crypto currencies owned by client
  • market : List of markets concerned by currencies in user's wallet (same order as price)
  • values : Dictionnary of current values in fiat money user's crypto currencies balance is equivalent to (according to real-time markets) Keys are dynamically generated by markets concerned by user

TESTS:

CurrencyViewer uses pytest module for its core tests, be sure to have the package beforehand.

Otherwise you can download and install it with pip:

pip install pytest

You also need to paste a copy of your kraken.key file into your tests/ directory.

In order to execute tests, go into your CurrencyViewer working directory and launch :

pytest tests/test_processing.py

or to add python path in pytest command try :

python -m pytest tests/test_processing.py

TODO:

  1. Add orders actions
  2. Add other exchanges
  3. Add a GUI
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].