Currency Viewer is a Kraken exchange framework
Project description
Currency Viewer
===============
This is a short python3 program that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money.
If this script helped you or if you have any feedback, please don't hesitate to contact me.
Author : smechaab
Contact : s.mechaab@protonmail.com
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.
TODOÂ :
It is also planned to add other exchanges than Kraken.
I wish you a good ‘back-to-school’ !
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).
NOTE: Some bugs need to be fixed with fiat currencies other than EUR or USD,
it will be patched in the next one.
Example
-------
See `example.py`
```
import CurrencyViewer 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
* ``total`` : Dictionnary of total differents fiat money owned by user
TODO:
-----
1. Add e-mail sender with timer or interruptions to user (user will add its own e-mail to ensure privacy)
2. Add other exchanges
3. Add a GUI
===============
This is a short python3 program that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money.
If this script helped you or if you have any feedback, please don't hesitate to contact me.
Author : smechaab
Contact : s.mechaab@protonmail.com
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.
TODOÂ :
It is also planned to add other exchanges than Kraken.
I wish you a good ‘back-to-school’ !
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).
NOTE: Some bugs need to be fixed with fiat currencies other than EUR or USD,
it will be patched in the next one.
Example
-------
See `example.py`
```
import CurrencyViewer 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
* ``total`` : Dictionnary of total differents fiat money owned by user
TODO:
-----
1. Add e-mail sender with timer or interruptions to user (user will add its own e-mail to ensure privacy)
2. Add other exchanges
3. Add a GUI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file currency_viewer-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: currency_viewer-0.2.1-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33e400b06a2e323937af18f2c8d65a90c3d4cde74c8d68e464bd2390eede0a12 |
|
MD5 | 7234ef664de1b01cc746a361ad2da1bb |
|
BLAKE2b-256 | 59699834c1a4a6804aacf123b9cf55efb8cb4793ea6400f131dad406ce96ea76 |