Bitcoin Forum
May 09, 2024, 09:57:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: SOLVED: Finding your wallets worth with this changing value, PHP Question !  (Read 515 times)
MoreBloodWine (OP)
Legendary
*
Offline Offline

Activity: 1050
Merit: 1001


View Profile
January 27, 2014, 11:51:35 AM
Last edit: January 28, 2014, 12:43:34 AM by MoreBloodWine
 #1

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

To be decided...
1715291839
Hero Member
*
Offline Offline

Posts: 1715291839

View Profile Personal Message (Offline)

Ignore
1715291839
Reply with quote  #2

1715291839
Report to moderator
1715291839
Hero Member
*
Offline Offline

Posts: 1715291839

View Profile Personal Message (Offline)

Ignore
1715291839
Reply with quote  #2

1715291839
Report to moderator
1715291839
Hero Member
*
Offline Offline

Posts: 1715291839

View Profile Personal Message (Offline)

Ignore
1715291839
Reply with quote  #2

1715291839
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
January 27, 2014, 12:53:02 PM
 #2

$btc_stats[ 'avg' ] * $btc_guild_earned

edit: don't use the Gox-price, it has no basis in reality.
MoreBloodWine (OP)
Legendary
*
Offline Offline

Activity: 1050
Merit: 1001


View Profile
January 27, 2014, 01:04:25 PM
 #3

$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

To be decided...
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
January 27, 2014, 07:13:03 PM
 #4

$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
MoreBloodWine (OP)
Legendary
*
Offline Offline

Activity: 1050
Merit: 1001


View Profile
January 27, 2014, 10:29:34 PM
 #5

$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.

To be decided...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!