Pages:
Author

Topic: Real Time Charting, Order Book, and Time & Sales - page 12. (Read 85520 times)

hero member
Activity: 548
Merit: 502
So much code.
Yes, I just noticed today that it will load the page once and the time & sales does not display trades  any more - it never updates...

If the 'lag' measure is updating in the footer, then there is data coming over the socket. That metric comes in often.

I'm not relaying, or in any way controlling, the MtGox data: it comes directly from the exchange. Any connection problems are from MtGox.
full member
Activity: 176
Merit: 106
XMR = BTC in 2010. Rise chikun.
Yes, I just noticed today that it will load the page once and the time & sales does not display trades  any more - it never updates...
newbie
Activity: 17
Merit: 0
I'm seeing this too since late evening 3/29. Asks list is slightly incorrect, Bids list is severely distorted - whole price regions are missing. Tried FF14, MSIE9, Chrome24 - all show the same. "Group by price" doesn't help too. Clark, please have a look at it when you will have a chance! Thank you in advance!

Fixed. I've got a long-running process that polls the MtGox order book, and it works most of the time...

Back to perfection! Thank you so much!
hero member
Activity: 548
Merit: 502
So much code.
I'm seeing this too since late evening 3/29. Asks list is slightly incorrect, Bids list is severely distorted - whole price regions are missing. Tried FF14, MSIE9, Chrome24 - all show the same. "Group by price" doesn't help too. Clark, please have a look at it when you will have a chance! Thank you in advance!

Fixed. I've got a long-running process that polls the MtGox order book, and it works most of the time...
newbie
Activity: 17
Merit: 0
Tonight I noticed that the market depth/order book is not updating correctly for some strange reason - if I freshly load the page, the order book will usually show old/incorrect order book data from an earlier point in time.  Eventually it will merge into newer data, but it is still incorrect.  If I leave the page open, orders are usually added & removed fairly often which tends to make it more correct, but it is usually out of date nevertheless.  Is there perhaps cached order book data being stored somewhere that is causing this?  I've noticed it happen on multiple computers this evening, especially when some large bids came in above $90, but when I refreshed the page they disappeared and it displayed incorrect cached? data.  I also tried testing in a Chrome incognito window and it did the same thing too...

I'm seeing this too since late evening 3/29. Asks list is slightly incorrect, Bids list is severely distorted - whole price regions are missing. Tried FF14, MSIE9, Chrome24 - all show the same. "Group by price" doesn't help too. Clark, please have a look at it when you will have a chance! Thank you in advance!
full member
Activity: 176
Merit: 106
XMR = BTC in 2010. Rise chikun.
Tonight I noticed that the market depth/order book is not updating correctly for some strange reason - if I freshly load the page, the order book will usually show old/incorrect order book data from an earlier point in time.  Eventually it will merge into newer data, but it is still incorrect.  If I leave the page open, orders are usually added & removed fairly often which tends to make it more correct, but it is usually out of date nevertheless.  Is there perhaps cached order book data being stored somewhere that is causing this?  I've noticed it happen on multiple computers this evening, especially when some large bids came in above $90, but when I refreshed the page they disappeared and it displayed incorrect cached? data.  I also tried testing in a Chrome incognito window and it did the same thing too...
legendary
Activity: 1008
Merit: 1000
Could you update the "group by price" choices? The max is $1 which is starting to be not large enough.

Heh  Smiley

I guess you're right!

I've added 2.50, 5.00, 10.00, 25.00, 50.00 intervals.

Thanks, that's awesome! Time to send you a tip...

EDIT: What's your preferred donation address - the one in your forum signature or the address at the bottom of the real-time charts page?
hero member
Activity: 548
Merit: 502
So much code.
Could you update the "group by price" choices? The max is $1 which is starting to be not large enough.

Heh  Smiley

I guess you're right!

I've added 2.50, 5.00, 10.00, 25.00, 50.00 intervals.
legendary
Activity: 1008
Merit: 1000
Could you update the "group by price" choices? The max is $1 which is starting to be not large enough.
sr. member
Activity: 379
Merit: 250
thank you for sharing Smiley
hero member
Activity: 548
Merit: 502
So much code.
I have added a real-time lag indicator in the footer, now that MtGox provides the lag figure through the WebSocket.

Before, I was polling from the server and sending that down with the user count, but now it comes directly from MtGox at might higher rates.

Hi, Clark, I took a look into gox stream api page and could not find any lag figure definition. Can you please give a link to the doc where this is described? or if possible can you answer just here?
In what channel, in what message, in which format?

MagicalTux mentioned it in the #mtgox channel on freenode.

Need to send:
Code:
{"op":"mtgox.subscribe", "type":"lag"}

Messages come in with private: lag. Then the lag data structure is:
Code:
{"qid":"af0760d1-4753-480b-9262-94f8768a9691","stamp":"1364335295159812","age":727548}}

Stamp is the timestamp of the measurement. Age is the lag value in microseconds. Qid must be some sort of query ID.
sr. member
Activity: 379
Merit: 250
I have added a real-time lag indicator in the footer, now that MtGox provides the lag figure through the WebSocket.

Before, I was polling from the server and sending that down with the user count, but now it comes directly from MtGox at might higher rates.

Hi, Clark, I took a look into gox stream api page and could not find any lag figure definition. Can you please give a link to the doc where this is described? or if possible can you answer just here?
In what channel, in what message, in which format?
hero member
Activity: 548
Merit: 502
So much code.
I have added a real-time lag indicator in the footer, now that MtGox provides the lag figure through the WebSocket.

Before, I was polling from the server and sending that down with the user count, but now it comes directly from MtGox at might higher rates.
hero member
Activity: 548
Merit: 502
So much code.
would be nice to see the CURRENT DATE.
i use screenshots of this for tax purposes, and a date would help.

The console output at the bottom of the screen timestamps its messages with the current local time.

Do you want Time & Sales / Chart to be local time?
legendary
Activity: 2058
Merit: 1005
this space intentionally left blank
would be nice to see the CURRENT DATE.
i use screenshots of this for tax purposes, and a date would help.
full member
Activity: 151
Merit: 100
I'm having an issue getting the HTML5 Canvas to display in any of my browsers on OS X 10.8.3

When I originally opened the site, I scrolled in with my touchpad and it eventually went out of scope and I couldn't get it back.

So far I've tried:

  • Double-clicking (reset) no change.
  • I've also tried clearing my cache in all browsers

Any idea what the issue might be?

I've got it working in Firefox, and moving my scroll wheel up scrolls in, but I can't scroll back out (OS X Natural Scrolling enabled) -- but if I switch it works in Firefox, but no change in Safari in Chrome.




Also some weird output:


Pinching my track pad actually fixed the view in chrome - firefox - but safari is still wacky! too bad mtgox's API falls down so hard at times.
hero member
Activity: 548
Merit: 502
So much code.
I'm having an issue getting the HTML5 Canvas to display in any of my browsers on OS X 10.8.3

I've got it working in Firefox, and moving my scroll wheel up scrolls in, but I can't scroll back out (OS X Natural Scrolling enabled) -- but if I switch it works in Firefox, but no change in Safari in Chrome.

Ok, so the canvas element is accelerated on the graphics card in some browsers. You could be having issues with browser/OS/graphics card incompatibility, though on an Apple computer, it should be pretty tested before release. You could try to disable GPU acceleration of canvas in chrome. I think it's under chrome://flags .

As for scrolling, Firefox fires different events than Chrome and others, and I try to take that into account. As for Natural Scroll, I don't know how that factors into the DoM event model, but after a search, I have not found anything really firm to support OS X scrolling events.
hero member
Activity: 548
Merit: 502
So much code.
Btw, I can't get it to work on Firefox. Should I tweak something or is it supposed to be that way?

Well it's supposed to work everywhere ;-) That's what socket.io is for.

However, right now if it doesn't work, I would continue to blame Gox until it gets a far more robust streaming solution hosted.
legendary
Activity: 1386
Merit: 1009
Yeah, I have seen this problem before. I instruct socket.io to force a new connection each time. That could be the issue: an 'error' connection comes back to life and starts getting data or something.

Going with something like socket.io means that there is a bit of black-box to it.

I will continue to tweak and see if it helps.
Thanks.
Btw, I can't get it to work on Firefox. Should I tweak something or is it supposed to be that way?
hero member
Activity: 548
Merit: 502
So much code.
Yeah, I have seen this problem before. I instruct socket.io to force a new connection each time. That could be the issue: an 'error' connection comes back to life and starts getting data or something.

Going with something like socket.io means that there is a bit of black-box to it.

I will continue to tweak and see if it helps.
Pages:
Jump to: