Bitcoin Forum
April 23, 2024, 07:25:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Help] A bitcoin balance checker by day  (Read 1099 times)
lueo (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10


Bitcoin believer


View Profile WWW
October 16, 2011, 03:00:43 PM
 #1

Dear all,

I'd like to write a tool in python that can collect the balance of an BTC addr by day. So that I can display the progress in a line graph.

I would like to ask help for:

1. How do I collect day-by-day balance from blockexplore? For example, I need a function that can return the following information to me:

(Original information from http://blockexplorer.com/address/1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX)

Date, Time, balance
2010-10-9, 09:10, 34.9
2010-10-10, 09:15, 36.9

2. How do I convert them into a rrd file?

I've searched on the net and I found a tool called pyrrd, have you tried to use it to convert data into a rrd file?

Donation: 1M1mB5BQX5QthTojfHxXxJQJr8ro5xLcKR
Real-time LR <-> MTGOX exchange! http://goo.gl/gJqZS
Internet Marketing Q&A in Chinese: http://qa.webcash168.com/
1713900312
Hero Member
*
Offline Offline

Posts: 1713900312

View Profile Personal Message (Offline)

Ignore
1713900312
Reply with quote  #2

1713900312
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713900312
Hero Member
*
Offline Offline

Posts: 1713900312

View Profile Personal Message (Offline)

Ignore
1713900312
Reply with quote  #2

1713900312
Report to moderator
dogisland
Sr. Member
****
Offline Offline

Activity: 262
Merit: 250



View Profile
October 17, 2011, 10:41:50 AM
 #2

I think you'd be better off using http://blockexplorer.com/q/getreceivedbyaddress/1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX

So wget http://blockexplorer.com/q/getreceivedbyaddress/1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX each day (cron job ?) and append to a file.

lueo (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10


Bitcoin believer


View Profile WWW
October 18, 2011, 12:14:44 PM
 #3

Dear dogisland,

Thanks for your advice, but what I need to do is to make a chart from the transaction history in the same time, not to record the balance day by day.


Donation: 1M1mB5BQX5QthTojfHxXxJQJr8ro5xLcKR
Real-time LR <-> MTGOX exchange! http://goo.gl/gJqZS
Internet Marketing Q&A in Chinese: http://qa.webcash168.com/
ThomasV
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 18, 2011, 01:02:24 PM
 #4

Dear dogisland,

Thanks for your advice, but what I need to do is to make a chart from the transaction history in the same time, not to record the balance day by day.


here is a function that you can use:
http://ecdsa.org/q/getaddresshistory/1EUqkFmL9HNpBRvbWRAqCiUjepaR7Vbryp

I can add a callback function if you need to do it in javascript

Electrum: the convenience of a web wallet, without the risks
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!