Bitcoin Forum

Economy => Trading Discussion => Topic started by: hendi on May 18, 2011, 02:53:31 PM



Title: MtGox Market Mover: How does a trade affect MtGox?
Post by: hendi on May 18, 2011, 02:53:31 PM
I've made a small script to help you understand how a transaction (buying/selling usd/btc) affects the market at MtGox. It gives you the answer to question like
  • I want to buy X Bitcoins, how much $ does it cost?
  • I want to spent X $, how much Bitcoins do I get?
  • I want to sell X Bitcoins, how much $ do I get?
  • I want to get X $, how much Bitcoins do I have to sell?
and also calculates the bid/ask price that would be in effect after you'd perform these trades.

This was very helpful for me (I wanted to know how many BTC I would have to sell in order to cover all my expenses so far) and I hope it is for you, too :)

Feedback/criticism/suggestions welcome!

http://hendi.name/bitcoin/mmm/ (http://hendi.name/bitcoin/mmm/)


Title: Re: MtGox Market Mover: How does a trade affect MtGox?
Post by: hendi on May 19, 2011, 08:20:14 AM
It's PHP and gets the most expensive price buy or sell. Simple adaptation would easily allow you to do what you're doing on your site. Code below:
What's the point of doing "simple adaption" to get something that's already done? Of course this is not rocket science, but me making my site available is just an offer for convenience.


Title: Re: MtGox Market Mover: How does a trade affect MtGox?
Post by: sammoocow on May 21, 2011, 12:56:04 PM
Very cool script hendi. Good job.


Title: Re: MtGox Market Mover: How does a trade affect MtGox?
Post by: kseistrup on May 21, 2011, 02:24:48 PM

http://hendi.name/bitcoin/mmm/ (http://hendi.name/bitcoin/mmm/)

It would be sweet with a commandline thing doing the same.  Is your script opensource/available?  If so, I'm pretty sure I could make, say, a python CLI version.

Cheers,