mvarnagiris / financius

Personal expense manager
GNU General Public License v2.0
626 stars 254 forks source link

Cryptocurrency support with exchange rates #105

Open tdkl opened 10 years ago

tdkl commented 10 years ago

Ever thought about supporting cryptocurrencies ? Maybe the most active ones like Bitcoin, Litecoin and Dogecoin for starters.

Cryptsy offers an API for exchange rates : https://www.cryptsy.com/pages/api

Maybe adding initial support for selecting those as currency first, then sometime the exchange rates later :]

[edit] The cryptocurrencies like Bitcoin require special amount of decimal places which is 8 and can go up to 12, as per http://subledger.com/blog/cryptocurrency-accounting/#.U_TuEPSSybg This would cover Bitcoin, Litecoin, Ripple and Dogecoin.

mvarnagiris commented 10 years ago

You can create any currency you want, just the exchange rates will not update. I'll leave it here as a suggestion. If more people will be interested in this then I will implement that, but that is definitely not a priority

tdkl commented 10 years ago

Added information with source for decimal places for popular cryptocurrencies, as discussed on G+.

mvarnagiris commented 10 years ago

Awesome. Quick question, will it be max 8 decimals or does it vary?

tdkl commented 10 years ago

For Bitcoin (since this is the best documented and most known) it's 8 yeah : https://en.bitcoin.it/wiki/Myths#21_million_coins_isn.27t_enough.3B_doesn.27t_scale

Another term in use for the minimal amount is a Satoshi. To quote: "Bitcoin has 8 decimal digits and can be broken down to 0.00000001 which is called a Satoshi. MilliBitcoin or MillyBits will most likely be the common denomination used in the near future." (src: http://millybitcoin.com/common-bitcoin-misconceptions/)

About new mili or micro BTC: http://blog.bitpay.com/2014/05/02/bitpay-bitcoin-and-where-to-put-that-decimal-point.html

Doge and Litecoin use 12 decimal places.

wzub commented 9 years ago

I'd be interested in Bitcoin support. Added it manually for now, but updated exchange rates would be great.

mittt commented 9 years ago

+1; Sorry for the useless comment. I did not see other way to +1.