Post
Topic
Board Trading Discussion
Re: SierraChart bridge - Realtime Bitcoin charts [v0.5] (MtGox, Intersango, ...)
by
deepceleron
on 28/04/2013, 04:02:43 UTC
bitcoincharts is alive again.

Every attempt I make to download the whole history, it often gets through a month or two but always ends up crapping out with a 502 error.

These errors persist even with the rebirth of bitcoincharts. They seem completely random, with no relation to the amount of data or the amount of time since the last request. I can wait five seconds between requests that are 1/20 the size of maximum and they still randomly happen. Of course the bitcoincharts API overview does say "Don't query more often than once every 15 minutes!", but that would make getting any amount of history beyond a single request take forever.

Therefore I have tried to make code that figures out what bitcoincharts wants and only gives up if it has way too many 502 errors. It slows down and requests less data upon errors to reduce hammering the server:

Link to post with download: https://bitcointalk.org/index.php?topic=6019.msg1929339#msg1929339