Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MtGox used for currency exchange rate #2

Closed
wozz opened this issue Feb 9, 2014 · 5 comments
Closed

MtGox used for currency exchange rate #2

wozz opened this issue Feb 9, 2014 · 5 comments

Comments

@wozz
Copy link

wozz commented Feb 9, 2014

especially with recent issues with mtgox, I don't think it's a good idea to use it for the exchange rate. Coindesk bitcoin price index is supposed to be a weighted average of exchanges, which would be a better indication of value. Ideally, there should be an option to pick from multiple exchanges depending on which exchanges each user uses.

@nighthawk24
Copy link

picking from a single exchange does not make sense, either an available average
+1 using coindesk should be better http://www.coindesk.com/price/

@langerhans
Copy link
Owner

Yep, I agree that this needs to be addressed. I'll look into coindesk, or maybe bitcoinaverage. Both provide more reasonable values. Thanks :)

@wozz
Copy link
Author

wozz commented Feb 9, 2014

coindesk has a simple json api, not sure how mtgox supplies its data, but it may be quite simple to just repoint the url and possibly change some parsing: http://www.coindesk.com/api/

allowing a more complex selection of dogecoin->bitcoin or ltc exchange and then a separate bitcoin/ltc->usd/eur would obviously take a bit more work

@langerhans
Copy link
Owner

The MultiBit base uses a library called XChange for all this. There is another branch of it with support for more exchanges which also trade doge. I hope this gets to the master soon. Until this happens I'll look into just integrating one of the suggestions here. Json is a breeze to use anyway :)

@langerhans
Copy link
Owner

I migrated XChange to v2 which provides the BitcoinAverage API. So we now have a weighted price over virtually all btc/fiat exchanges (according to their docs)
Commit 74d9d24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants