bitcoinium icon indicating copy to clipboard operation
bitcoinium copied to clipboard

Improve Chart-Generation

Open deveth0 opened this issue 12 years ago • 4 comments

Hi,

just a hint: there is an easier and faster way to generate the charts for exchanges:

you can use the json access to bitcoincharts.com which accepts the following parameter: http://bitcoincharts.com/charts/chart.json?m=mtgoxUSD&r=1

m= exchange r= days in past

This api gives you a preordered and filtered array of values, which are sufficient to generate a chart. As those are only a low number of values, the performance should increase dramatically ;)

greetz Alex (using this in next release of https://play.google.com/store/apps/details?id=de.dev.eth0.bitcointrader)

deveth0 avatar Jul 30 '13 14:07 deveth0

Thanks for the tip! I've been looking for ways improve graphing performance and didn't know this was available on BitcoinChart's API. Perhaps this should also be added to the BitcoinCharts module in XChange?

Is there documentation on how to interpret the data?

Really sick app btw, seems like I have some catching up to do :). Good luck!

veken0m avatar Jul 30 '13 16:07 veken0m

There is no official documentation of this data, but i contacted the creators and they told me, it's ok to use. The values are in this order: date open high low close volume volume Currency weighted Price

I already extended the xchange module, but it's kind of bad code which is not conform with the xchange stuff, so i didn't commit it yet. hope i find time to rebuild it.

Why catching up? I really like your app to get information and don't think, our apps rival but complement each other :)

deveth0 avatar Jul 30 '13 17:07 deveth0

Awesome thanks!

It's true that our apps don't really rival each other but features such as trading, wallet and account info are some features I've always wanted to implement but never had the time. Also my UI is looking pretty outdated XD

veken0m avatar Jul 30 '13 18:07 veken0m

It's not "outdated" it's oldschool ;)

Edit: i commited the code to my fork: https://github.com/deveth0/XChange/tree/advanced-bitcoinchart-data

deveth0 avatar Jul 30 '13 18:07 deveth0