Bitcoin Forum
May 10, 2024, 09:39:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox Market Mover: How does a trade affect MtGox?  (Read 1602 times)
hendi (OP)
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
May 18, 2011, 02:53:31 PM
 #1

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 Smiley

Feedback/criticism/suggestions welcome!

http://hendi.name/bitcoin/mmm/
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715377174
Hero Member
*
Offline Offline

Posts: 1715377174

View Profile Personal Message (Offline)

Ignore
1715377174
Reply with quote  #2

1715377174
Report to moderator
1715377174
Hero Member
*
Offline Offline

Posts: 1715377174

View Profile Personal Message (Offline)

Ignore
1715377174
Reply with quote  #2

1715377174
Report to moderator
hendi (OP)
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
May 19, 2011, 08:20:14 AM
 #2

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.
sammoocow
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile
May 21, 2011, 12:56:04 PM
 #3

Very cool script hendi. Good job.
kseistrup
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


Unselfish actions pay back better


View Profile WWW
May 21, 2011, 02:24:48 PM
 #4


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,

Klaus Alexander Seistrup
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!