Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: payb.tc on August 10, 2011, 07:23:00 AM



Title: idea for mtgoxlive.com
Post by: payb.tc on August 10, 2011, 07:23:00 AM
sorry i couldn't find an 'official' mtgoxlive thread to post this idea:

it would be cool if you could tell the site how many bitcoins you have for sale, and then it could constantly update how much you could get for them at any given moment.

eg. if you have 2036 btc to sell, you could currently get $20,023.

this is not just a simple exchange-rate calculation as it takes into account all the currently active bid orders.

likewise if you have $53938 to spend, you can right now get 5009 BTC.

would be great if you could input your $ amount, and then watch as the potential BTC amount you could buy fluctates based on the asks.


Title: Re: idea for mtgoxlive.com
Post by: kjj on August 10, 2011, 12:54:40 PM
Hover your cursor on the lines.


Title: Re: idea for mtgoxlive.com
Post by: payb.tc on August 10, 2011, 01:08:57 PM
Hover your cursor on the lines.

yes, been there, done that thanks (that's how i found out the above example figures).

it's easy to find out by moving the cursor to the window and hovering over the graph until you find the point which corresponds to your approximate amount of bitcoins or dollars.

but i'm talking about entering your exact amount, and having an updated, easily visible display that shows you the amount, without user interaction.



Title: Re: idea for mtgoxlive.com
Post by: GeniuSxBoY on August 10, 2011, 01:27:22 PM
besides the lag when people place big orders... I think mtgoxlive is perfect.


Title: Re: idea for mtgoxlive.com
Post by: payb.tc on August 10, 2011, 01:58:04 PM
yeah it is a good site.

i just think it would be cool to be able to see how much your stash is worth, if sold into the mt gox market in one hit, obviously this is much different to just looking at the exchange rate and saying coins*rate.

like say the rate is $10.15 (like it is right now), and I own 20,000 coins... some might say i have $203,000 worth of coins, but it's realistically only worth about $180,000, if it had to be sold right now on mt gox.

how does one get started in programming a site that utilises this live feed?


Title: Re: idea for mtgoxlive.com
Post by: OgNasty on August 10, 2011, 03:07:51 PM
Nothing is stopping a 3rd party from implementing this, or you yourself.  I'd prefer that to adding clutter to the mtgox site.  Simple = Better.  More < Less.


Title: Re: idea for mtgoxlive.com
Post by: Clark on August 10, 2011, 04:28:26 PM
how does one get started in programming a site that utilises this live feed?

Well, you can take a look at the Wiki (https://en.bitcoin.it/wiki/MtGox/API) and work with the WebSocket API.

Obtaining the whole order book is a bit tricky, but my service does it. I could add this sort of calculator to my order book site. Are you putting up a bounty for it?  ;)


Title: Re: idea for mtgoxlive.com
Post by: Clark on August 10, 2011, 06:48:08 PM
Well, I did it. So go check out http://bitcoin.clarkmoody.com/order-book/ (http://bitcoin.clarkmoody.com/order-book/) and use the nifty new calculator there!


Title: Re: idea for mtgoxlive.com
Post by: payb.tc on August 11, 2011, 12:29:52 AM
Well, I did it. So go check out http://bitcoin.clarkmoody.com/order-book/ (http://bitcoin.clarkmoody.com/order-book/) and use the nifty new calculator there!

this is awesome, thank you. i hope i'm not the only one that thinks this is useful (or just plain interesting :) )

...sending you 1 btc.


Title: Re: idea for mtgoxlive.com
Post by: payb.tc on August 11, 2011, 12:40:31 AM
Nothing is stopping a 3rd party from implementing this

i forgot mtgoxlive wasn't a '3rd party' anymore.


Title: Re: idea for mtgoxlive.com
Post by: Bitcoin Swami on August 11, 2011, 01:16:24 AM
Well, I did it. So go check out http://bitcoin.clarkmoody.com/order-book/ (http://bitcoin.clarkmoody.com/order-book/) and use the nifty new calculator there!

Love this use it all the time.  Will be sending you some btc after my next trade.


Title: Re: idea for mtgoxlive.com
Post by: Clark on August 11, 2011, 06:20:01 PM
Thanks guys. I hope many people continue to find my service useful.


Title: Re: idea for mtgoxlive.com
Post by: bitrick on August 12, 2011, 11:50:12 PM
besides the lag when people place big orders... I think mtgoxlive is perfect.

I think it is worse than a lag. The browser completely locks up (all windows and tabs) when there are orders flying by. I suspect mtgoxlive is using synchronous XMLHttpRequest. If so, that is a very poor design pattern; it is fairly easy to switch to asynchronous. I like the website, but this is such a bad problem that I am tempted to find or write an alternative. Does anyone know of an alternative?