Author

Topic: SOLVED: Finding your wallets worth with this changing value, PHP Question ! (Read 530 times)

legendary
Activity: 1064
Merit: 1001
$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.
hero member
Activity: 728
Merit: 500
$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
legendary
Activity: 1064
Merit: 1001
$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
hero member
Activity: 728
Merit: 500
$btc_stats[ 'avg' ] * $btc_guild_earned

edit: don't use the Gox-price, it has no basis in reality.
legendary
Activity: 1064
Merit: 1001
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
Jump to: