Bitcoin Forum

Bitcoin => Project Development => Topic started by: TDA31 on March 21, 2014, 02:58:59 AM



Title: Crypto-Balance: Track and summarise your funds
Post by: TDA31 on March 21, 2014, 02:58:59 AM
When we have multiple crypto-currencies in different wallets/exchanges/pools, it can become hard to summarise our funds and get a clear picture of where we stand financially.
That's where Crypto-Balance comes in.

It started as a personal tool for me to track the value of my different coins on different exchanges as I didn't find such service already existing.

The idea is pretty simple:
- register the api keys of different mining accounts, wallets or exchange accounts
- retrieve the balance for each account (which can be in BTC, LTC, XPM, etc...)
- retrieve the rate of altcoins in BTC with cryptocoincharts API
- retrieve the rate of non-USD fiat balances (i.e. GBP, JPY, etc... if any) in USD through Yahoo Finance API
- retrieve the BTC/USD price through CoinDesk Bitcoin Price Index
- summarise the total BTC equivalent and USD equivalent of the positions

URL of the beta: http://pacific-tor-1893.herokuapp.com/ (http://pacific-tor-1893.herokuapp.com/)

Example of reports:

Overview:
https://i.imgur.com/ciaUq4z.png

How to read the table: the first row tells that on Mar-19 at 12:00, I had 0.12 LTC, 4990 NVC, etc... which is equivalent to a total of 0.92 BTC, which is equivalent to $568 at the BPI at that time (619).

Details of that "snapshot":
https://i.imgur.com/vHVsSVw.png

A background process goes through all the registered accounts one by one every 6 hours to generate a new "snapshot".
I have plans to generate graphs and other stats from these snapshots but for now it's only the raw data and the 2 screenshots provided above.
To protect the API keys of the accounts, I encrypt the keys in the DB and store the key separately (as a config var of the app).
I do not encrypt keys that do not harm if stolen by an attacker (like mining api keys or wallet addresses which do not grant anything but read-only access).

At the moment, it support the following services:
Quote
Bitcoin Wallet (through BlockChain, just need to give the address of the wallet)
Litecoin Wallet (through LitecoinExplorer, just need to give the address of the wallet)
BTC-E
Bitfinex
Bter
D7 Pool
Give-Me-Coins
MultiPool
NVC Khore
YPool

URL of the beta: http://pacific-tor-1893.herokuapp.com/ (http://pacific-tor-1893.herokuapp.com/)

Notes:
  • Third party accounts not setup when registering (Facebook, Google etc...), please create a new account during the test phase (no need of a valid e-mail address, nothing will ever been sent but use some address you'll remember as you need it for login)
  • More services to come, please let me know the ones you are using and are willing to see added