Bitcoin Forum
November 09, 2024, 12:01:16 AM *
News: Latest Bitcoin Core release: 28.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/
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!