Bitcoin Forum
December 06, 2016, 02:32:17 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [Help] A bitcoin balance checker by day  (Read 944 times)
lueo
Member
**
Offline Offline

Activity: 61


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/
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481034737
Hero Member
*
Offline Offline

Posts: 1481034737

View Profile Personal Message (Offline)

Ignore
1481034737
Reply with quote  #2

1481034737
Report to moderator
1481034737
Hero Member
*
Offline Offline

Posts: 1481034737

View Profile Personal Message (Offline)

Ignore
1481034737
Reply with quote  #2

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

Activity: 261



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
Member
**
Offline Offline

Activity: 61


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: 1722



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!