Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: MoreBloodWine on January 27, 2014, 11:51:35 AM



Title: SOLVED: Finding your wallets worth with this changing value, PHP Question !
Post by: MoreBloodWine on January 27, 2014, 11:51:35 AM
If my wallet value is...

sprintf( '%.8f', $btc_guild_earned )

and the gox price is...

number_format( $btc_stats[ 'avg' ], 2 )

What would be the math to find my wallets value which right now in BTC terms is 0.00265926


Title: Re: Finding your wallets worth with this changing value, PHP Question !
Post by: Rannasha on January 27, 2014, 12:53:02 PM
$btc_stats[ 'avg' ] * $btc_guild_earned

edit: don't use the Gox-price, it has no basis in reality.


Title: Re: Finding your wallets worth with this changing value, PHP Question !
Post by: MoreBloodWine on January 27, 2014, 01:04:25 PM
$btc_stats[ 'avg' ] * $btc_guild_earned

edit: don't use the Gox-price, it has no basis in reality.
I usually go with BTC-e but like to use both for visual purposes.

Next question, thinking this through more, what't I'd like to do if possible is somehow get my blockchin.info accounts final balance which consists of 3 wallets with varying small amounts.

Anyway to do that, so $btc_guild_earned would become $blockchain_final_balance


Title: Re: Finding your wallets worth with this changing value, PHP Question !
Post by: Rannasha on January 27, 2014, 07:13:03 PM
$btc_stats[ 'avg' ] * $btc_guild_earned

edit: don't use the Gox-price, it has no basis in reality.
I usually go with BTC-e but like to use both for visual purposes.

Next question, thinking this through more, what't I'd like to do if possible is somehow get my blockchin.info accounts final balance which consists of 3 wallets with varying small amounts.

Anyway to do that, so $btc_guild_earned would become $blockchain_final_balance

For that you should check out the Blockchain wallet API documentation. It also has some examples.
https://blockchain.info/api/blockchain_wallet_api


Title: Re: Finding your wallets worth with this changing value, PHP Question !
Post by: MoreBloodWine on January 27, 2014, 10:29:34 PM
$btc_stats[ 'avg' ] * $btc_guild_earned

edit: don't use the Gox-price, it has no basis in reality.
I usually go with BTC-e but like to use both for visual purposes.

Next question, thinking this through more, what't I'd like to do if possible is somehow get my blockchin.info accounts final balance which consists of 3 wallets with varying small amounts.

Anyway to do that, so $btc_guild_earned would become $blockchain_final_balance

For that you should check out the Blockchain wallet API documentation. It also has some examples.
https://blockchain.info/api/blockchain_wallet_api
Thx, will give it a read.