8
I need to display at my website what a certain amount of Bitcoins will likely cost. I can fetch the latest price using the MtGox API and multiply it by the amount, but for large amounts this is inaccurate because the buy itself will move the price. The only other option seems to fetch the whole orderbook, and calculate it myself each time, but isn't there an API for this?
3
You might want to post this as a feature request for the XChange project in GitHub. See https://github.com/timmolter/XChange
– Gary Rowe – 2012-08-22T21:04:46.1003Unless you want to move really big amount of Bitcoins, the order itself shoudldn't move the Bitcoin price too much. You can always go for the current price +- some spread. – ThePiachu – 2012-08-23T17:28:43.953