Bitcoin Forum

Economy => Marketplace => Topic started by: TTBit on November 17, 2010, 06:16:43 PM



Title: MtGox Matrix
Post by: TTBit on November 17, 2010, 06:16:43 PM

http://www.taters.net/cgi-bin/btc/matrix.pl?axisinc=0.01

Should be obvious, however:
*Change your axis increment at the top.
*The Green Columns on left and right is total USD bid/offered at that level, with [Totals in brackets]
*Total coins bid/ask at that level [number of orders in brackets]

price & volume data will be included, my goal is to make a complete front-end for trading at MtGox. Above is written in Perl, and I'm reading about php - I'm stuck at the 'hello world' section  ???


Title: Re: MtGox Matrix
Post by: FreeMoney on November 17, 2010, 06:43:40 PM
It's really weird at this point to still not have the whole order book at mtgox. Not to mention that it is always skewed toward showing more asks than bids.


Title: Re: MtGox Matrix
Post by: slush on November 17, 2010, 07:52:50 PM
I appreciate the total USD price, it's nice.

Do you plan real-time ajax interface? I hate mtgox because it _is_ ajax, but still have to refresh for new data.

Quote
Above is written in Perl, and I'm reading about php

<OT>Maybe your mind is too much overcomplicated from perl that you don't get the beginner's kludge called 'php' ;-). If you are new in php and skilled in perl, try python instead.</OT>


Title: Re: MtGox Matrix
Post by: TTBit on November 17, 2010, 09:36:05 PM
It's really weird at this point to still not have the whole order book at mtgox. Not to mention that it is always skewed toward showing more asks than bids.

I think there are a lot of shadow bids out there. No one is going to tip their hand and display they want to buy $20k worth of coins. I think if we had the total account balance at MtGox, it would show a different picture.


Title: Re: MtGox Matrix
Post by: TTBit on November 17, 2010, 09:41:56 PM
I appreciate the total USD price, it's nice.

Do you plan real-time ajax interface? I hate mtgox because it _is_ ajax, but still have to refresh for new data.

Quote
Above is written in Perl, and I'm reading about php

<OT>Maybe your mind is too much overcomplicated from perl that you don't get the beginner's kludge called 'php' ;-). If you are new in php and skilled in perl, try python instead.</OT>

Thank you for the tip. I enjoy programming, and will learn as I go.

Having the matrix update real-time would be sweet.


Title: Re: MtGox Matrix
Post by: FreeMoney on November 17, 2010, 09:48:28 PM
It's really weird at this point to still not have the whole order book at mtgox. Not to mention that it is always skewed toward showing more asks than bids.

I think there are a lot of shadow bids out there. No one is going to tip their hand and display they want to buy $20k worth of coins. I think if we had the total account balance at MtGox, it would show a different picture.

No, I only mean that it seems to cut off the chart in some odd way. So if a trade happens at 20 cents we get to see down to 16 cents and up to 40 or something. Doesn't matter, the whole book should be available somewhere.


Title: Re: MtGox Matrix
Post by: TTBit on November 18, 2010, 05:02:57 AM
update: Volume data was added

MtGox volume in the ticker doesn't match up with the volume I sum up from the data provided.  The 2nd row is MtGox ticker volume.


Title: Re: MtGox Matrix
Post by: mpkomara on November 18, 2010, 05:38:33 AM
TTBit-- Are you in any way affiliated with Trading Technologies (TT)?  They have a "market depth trader" or "MD trader" that looks like your newest output. 


Title: Re: MtGox Matrix
Post by: TTBit on November 18, 2010, 05:54:30 AM
TTBit-- Are you in any way affiliated with Trading Technologies (TT)?  They have a "market depth trader" or "MD trader" that looks like your newest output. 

Great catch, but no, I am not affiliated with Trading Technologies - however, I am a member of the CME, and used their software years ago. The 'TT' comes from the "taters" name which was my softball team in college.

Their format must have inspired me  :P


Title: Re: MtGox Matrix
Post by: Stephen Gornick on December 13, 2010, 04:13:51 PM
Your matrix display is so useful.  Using the 0.0025 sub-cent axis display is my favorite way to see bid/ask spread:
   http://www.taters.net/cgi-bin/btc/matrix.pl?axisinc=0.0025

There's a page-display widget that I would like to use that will periodically refresh the matrix in a window off to the side.  However, that tool doesn't like how your script doesn't return valid html -- e.g., no <html> tag, etc.

Were those tags omitted explicitly?  If not, would you consider adding them in?


Title: Re: MtGox Matrix
Post by: TTBit on December 13, 2010, 07:46:36 PM
Your matrix display is so useful.  Using the 0.0025 sub-cent axis display is my favorite way to see bid/ask spread:
   http://www.taters.net/cgi-bin/btc/matrix.pl?axisinc=0.0025

There's a page-display widget that I would like to use that will periodically refresh the matrix in a window off to the side.  However, that tool doesn't like how your script doesn't return valid html -- e.g., no <html> tag, etc.

Were those tags omitted explicitly?  If not, would you consider adding them in?

Thank you. I added some <html> and a <title>. Let me know if it needs anything else.

Rolling over the quantity now gives the individual orders. Works best in non-firefox browsers  :(


Title: Re: MtGox Matrix
Post by: Stephen Gornick on December 13, 2010, 10:44:51 PM
Thanks! Getting warmer.

<html>
  <head>
    <title>The Title</title>
  </head>
  <body>
     <table>
       [...]
     </table>

     <sript>
        [...   Traffic / Analytics Stuff here ...]
     </script>
  </body>
</html>


There's a validation service that you could run the site through:
  http://validator.w3.org/


Title: Re: MtGox Matrix
Post by: TTBit on December 14, 2010, 01:46:43 AM
I got a bunch of green with the validator. Does it work now?


Title: Re: MtGox Matrix
Post by: Stephen Gornick on January 07, 2011, 05:10:49 PM
While it appears the page will validate properly without it, the <body></body> tags are sometimes required for the page to be properly rendered.  For instance, I had an extension in Chrome that apparently thinks this page is raw HTML source and thus wouldn't layout and render the page.  I've disabled the extension for now.  If you wanted to support the widest number of browsers, you might wish to include <body>:

<html>
  <head>
       [...]
  </head>
   <body>
     <table>
       [...]
     </table>
  </body>
</html>

BTW, this is such a useful utility.  Thank you so much!


Title: Re: MtGox Matrix
Post by: TTBit on January 08, 2011, 03:57:30 AM
thank you for the help. I am happy to work on it.

If anyone who knows what they are doing creates a similar page, I won't feel slighted in the least.


Title: Re: MtGox Matrix
Post by: weinerk on April 26, 2011, 02:21:56 PM
Why the change - "Trade Volume unavailable" etc?

Thanks!!!


Title: Re: MtGox Matrix
Post by: Stephen Gornick on April 27, 2011, 10:14:39 PM
Why the change - "Trade Volume unavailable" etc?

The closest thing I've seen to Mt.Gox Matrix is:
  Weighted prices from:
  - http://www.bitcoinwatch.com

 and the depth chart:
  - http://bitcoincharts.com/markets/mtgoxUSD_depth.html


Title: Re: MtGox Matrix
Post by: LZ on June 04, 2011, 05:05:09 AM
Code:
The server encountered an internal error or misconfiguration
and was unable to complete your request. Your administrator
may not have enabled CGI access for this directory.

I hope the author will fix it. Will he?


Title: Re: MtGox Matrix
Post by: jhansen858 on June 04, 2011, 05:39:16 AM
I made something similar, well actually i never saw his page cause its down.

Mtgox parser with USD values added in.


http://btcbids.com/trader.php


Title: Re: MtGox Matrix
Post by: weinerk on June 05, 2011, 08:44:35 PM
Code:
The server encountered an internal error or misconfiguration
and was unable to complete your request. Your administrator
may not have enabled CGI access for this directory.

I hope the author will fix it. Will he?

I re-created something similar.
http://omnicompass.com/mtgox