our advertising disclaimer | Disclaimer - Must be read before using forum or clicking any links
Loanclicks.com
hyipregulate.com
YOUR AD HERE!
For only $17/day, $99/week or $379/month on the most Popular HYIP related site online!
Buy Cheap HYIP Traffic
Buy Cheap High Quality Traffic for your HYIP, Doubler, or website!
Put your banner or text in the rotation above!ONLY $17/day, $99/week, or $379/month!


All banners and links On Talkgold are advertisements only. We do not endorse or vouch for any advertiser's claims. Use Extreme Caution & perform your own due diligence before sending money to anyone!Put Your 728X90 Banner Here NOW!
Go Back   Talkgold HYIP, Investment & Money Forum > Other Ways to Make/Save Money > Bitcoin Forum

Reply
 
Thread Tools Display Modes

bitcoincharts - one way to discover historical values
  #1  
Old 09-10-2011, 06:44 PM
nanaimogold's Avatar
nanaimogold nanaimogold is offline
Super Moderator
 
Join Date: Aug 2005
Location: Nanaimo, Canada
Posts: 3,150
Default bitcoincharts - one way to discover historical values

Quote:
Originally Posted by Tdinoz View Post
Bitcoin for dummies (or whoever) a question

Previous Close BTC/USD end of month (Sept)
?
Writes note to self to check on Oct 1.. How far off I and whoever was.
Do you mean August end? Or September 2010?

If you want history, bitcoincharts has a database you can query.
instructions here;
http://bitcoincharts.com/about/markets-api/

example from the instructions; (not a real link)
hxxp://bitcoincharts.com/t/trades.csv?symbol=SYMBOL[&start=UNIXTIME][&end=UNIXTIME]

You can use a simple calculation to get the unix time. There are web page based calculators, the unix date command, php functions etc.
we can use this;
http://www.csgnetwork.com/time2unixdscalc.html

Sept 30 2010 was unixtime 1285804800
24 hrs later was 1285891200

You are looking for USD exchange sales as reported by Mt. Gox. Because aberrant trades, that might be very tiny, will skew your point of view, it's better to get prices over a time range, then average them to get a realistic report.

We can construct a query in the form of a URL and read the result with a browser

http://bitcoincharts.com/t/trades.cs...end=1285891200

which results in all the sales to USD reported by Mt. Gox from Sept 30 2010 0:00 GMT until Oct 01 2010

It's much easier to read, as a human, by viewing the source. Look to your browser for a menu option to "view source" or "view page source".

1285809341,0.061741000000,32.000000000000
1285809915,0.061880000000,16.000000000000
1285809915,0.061900000000,3.000000000000
1285836639,0.061900000000,0.000000000000
1285844021,0.061900000000,561.000000000000
1285855748,0.061700000000,102.000000000000
1285866838,0.061630000000,102.000000000000
1285866838,0.061610000000,102.000000000000
...

The first comma separated value (CSV) is the unix time of the sale. The second is the USD rate and the third is the number of btc traded.

You can crunch those number to get an average over the time period, or just look them over to estimate the price. In this case, close to 0.0616 USD per bitcoin, a bit more than six cents each.

Programmers can make use of this data further, they can draw graphs or direct trading bots decisions but it's also a cool way for ordinary humans to get history with only a browser.
__________________

the borrower does as the lender wills

Forum rules here
Reply With Quote

Re: bitcoincharts - one way to discover historical values
  #2  
Old 09-19-2011, 07:14 PM
Tdinoz Tdinoz is offline
Super Moderator
 
Join Date: Apr 2005
Location: Australia
Posts: 10,290
Default Re: bitcoincharts - one way to discover historical values

Quote:
Originally Posted by nanaimogold View Post
Do you mean August end? Or September 2010?

If you want history, bitcoincharts has a database you can query.
instructions here;
http://bitcoincharts.com/about/markets-api/
End of September. Yes I used bitcoincharts

Unselect all currencies and choose Au,

wth or is it just me??

edit, oh last trade date Sept 8th
__________________
I'm a bit pedantic about my speech-
Reply With Quote

Re: bitcoincharts - one way to discover historical values
  #3  
Old 09-30-2011, 05:44 AM
nanaimogold's Avatar
nanaimogold nanaimogold is offline
Super Moderator
 
Join Date: Aug 2005
Location: Nanaimo, Canada
Posts: 3,150
Default Re: bitcoincharts - one way to discover historical values

Oops!

Quote:
Out of coins.
__________________

the borrower does as the lender wills

Forum rules here
Reply With Quote

Re: bitcoincharts - one way to discover historical values
  #4  
Old 10-01-2011, 12:53 AM
nanaimogold's Avatar
nanaimogold nanaimogold is offline
Super Moderator
 
Join Date: Aug 2005
Location: Nanaimo, Canada
Posts: 3,150
Default Re: bitcoincharts - one way to discover historical values

Good news; BitcoinCharts is still up and running. This from their front page;

Quote:
"Out of coins"

***8220;Out of coins***8221; was our old ```500 ***8211; Internal server error``` page. It***8217;s a relict from the time when Bitcoincharts only had a few dozens users. We have changed it to a proper message now.

For the curious: An scheduled update on the frontend servers went wrong because the network connection between testing and production systems went down just so that a single library was not copied correctly while the system thought everything went well. We have changed the script so this should not happen anymore.
__________________

the borrower does as the lender wills

Forum rules here
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


TALKGOLD
SIDEBAR ADS

ADVERTISE HERE. Must read: Advertising Terms & Disclaimer
PUT YOUR 120X120 AD HERE FOR ONLY $230/WEEK!
Click Here for details.
Your Ad Here Cost of Ad - $220
Your Ad Here Cost of Ad - $220
Your Ad Here Cost of Ad - $220
Your Ad Here Cost of Ad - $210
Your Ad Here Cost of Ad - $210
Your Ad Here Cost of Ad - $200
Your Ad Here Cost of Ad - $125
YOUR AD HERE

PUT YOUR NON-ROTATING AD HERE NOW!
ONLY $125/Week


Your Ad Here for $85/week or $325/month

All times are GMT. The time now is 08:34 AM.


Protected by BlockDOS.net - DDOS Protection
Forum by: vBulletin - Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.