MagicalTux
VIP
Hero Member
Offline
Activity: 608
Merit: 501
-
|
|
July 31, 2011, 05:02:41 PM |
|
I'd suggest ignoring depth updates for currency != USD for now, as it messes up the view
|
|
|
|
Oldminer
Legendary
Offline
Activity: 1022
Merit: 1001
|
|
August 05, 2011, 08:59:40 AM |
|
site's down
|
|
|
|
Clark (OP)
|
|
August 05, 2011, 03:01:18 PM Last edit: August 05, 2011, 03:17:17 PM by Clark |
|
And by 'site down,' do you mean that - My website failed to load?
- Or the WebSocket would never connect to give any data?
It would be nice to have the details so I know if there's anything I can do about the problem. It looks fine to me at this point though. I'm glad to see people finding these tools useful
|
|
|
|
Oldminer
Legendary
Offline
Activity: 1022
Merit: 1001
|
|
August 05, 2011, 03:09:21 PM |
|
Well the site came back up about 30 mins after I posted. From memory it was a time-out (page not found) error.
|
|
|
|
toffoo
|
|
August 06, 2011, 03:18:42 AM Last edit: August 06, 2011, 05:56:36 AM by toffoo |
|
And by 'site down,' do you mean that - My website failed to load?
- Or the WebSocket would never connect to give any data?
It would be nice to have the details so I know if there's anything I can do about the problem. It looks fine to me at this point though. I'm glad to see people finding these tools useful I saw that it was down last night as well. The entire clarkmoody.com domain wasn't responding for a few hours. Mt.Gox's websocket feed actually goes down quite often, but this was the first time I'd seen your entire site down. Clark, your Real Time Order Book page is just awesome (as are your other Bitcoin pages). I tried to program something like that myself a few months ago and couldn't come close. Your page is exactly what I was trying to achieve and I failed miserably. If I were Mr. Gox I would offer you a job. Your work is definitely deserving of a donation because now I cannot do a trade without it. When I'm not feeling so Bitcoin poor I will certainly send you something.
|
|
|
|
|
Oldminer
Legendary
Offline
Activity: 1022
Merit: 1001
|
|
August 06, 2011, 06:38:33 AM |
|
Hmm...
I wanted to try the site, but apparently firefox 4 and 5 have websockets disabled because it could be a security threat.
Get Chrome
|
|
|
|
indicasteve
|
|
August 06, 2011, 07:55:51 AM |
|
Hmm...
I wanted to try the site, but apparently firefox 4 and 5 have websockets disabled because it could be a security threat.
Get Chrome From what I've read so far, it's not the browser that's the problem...it's the protocol. Or rather it's how 'transparent proxies' are vulnerable to cache exploits that don't handle the protocol properly. I can edit my firefox config and enable it, but more research is needed before I will.
|
|
|
|
thinkingBTC
Newbie
Offline
Activity: 16
Merit: 0
|
|
August 06, 2011, 05:07:45 PM |
|
I think Chrome 12 (stable) was the last version to enable websockets, although I'm not 100% sure (the beta might too). I'm running Chrome Canary (15) and it's disabled for security reasons. I just open it up in Chrome 12.
|
|
|
|
Clark (OP)
|
|
August 10, 2011, 06:55:36 PM |
|
Clark, your Real Time Order Book page is just awesome (as are your other Bitcoin pages). I tried to program something like that myself a few months ago and couldn't come close. Your page is exactly what I was trying to achieve and I failed miserably. If I were Mr. Gox I would offer you a job. Thanks very much! As a side note, I have now added a real-time calculator to the order book. A longer description is in the first post in this thread. Enjoy!
|
|
|
|
zhalox
Full Member
Offline
Activity: 176
Merit: 106
XMR = BTC in 2010. Rise chikun.
|
|
August 11, 2011, 12:58:26 AM |
|
Thanks for the update with the calculator feature, I just sent you another 0.50 BTC.
|
|
|
|
Clark (OP)
|
|
August 11, 2011, 06:15:40 PM |
|
Thanks for the update with the calculator feature, I just sent you another 0.50 BTC.
Awesome! I think people will find it very useful.
|
|
|
|
YoYa
|
|
August 12, 2011, 11:42:07 PM |
|
Clark, I remember watching you time sales page during the boom and the bust in July, never seen anything so cool in my life as watching those numbers fly. The order book is even more awesome when there is tonnes of activity, the calculator is just the cherry on the cake!
Thanks, Will send on some btc when I buy some next.
|
|
|
|
|
GeniuSxBoY
|
|
August 14, 2011, 04:53:21 AM |
|
Hmm, can you please remove the calculator and put it on a separate page that you can get to by a link on the page.
Ever since it was added, the website freezes waaaay more than it used to. I can't load the 500 or 1000 views anymore.
|
Be humble!
|
|
|
Clark (OP)
|
|
August 14, 2011, 08:02:02 PM |
|
Hmm, can you please remove the calculator and put it on a separate page that you can get to by a link on the page.
Ever since it was added, the website freezes waaaay more than it used to. I can't load the 500 or 1000 views anymore.
Here are some numbers that I gathered about the time (milliseconds) it takes to process a depth message. The calculator, when active, is set on selling 100 BTC and spending 100 USD Rows | Calc | No Calc | 50 | 39.7 | 37.7 | 100 | 82.1 | 81.7 | 250 | 350.3 | 346.7 | 500 | 832.2 | 778.1 |
As you can see, the numbers do not reflect a significant processing overhead for the calculator. However, I believe I could be more efficient when computing the sums all the way down the book. You must keep in mind that MtGox sends messages out much faster than this page can display them. I believe the WebSocket gives on the order of 10-20 Hz data. Here's a few questions: How important is the sum column to you, especially at 500+ rows? Are you planning on releasing a 10000+ BTC buy any time soon (and will you let me know when you do)? How exactly do you use the book when set at those high display counts? What are you looking at far away from the strike price? I'd really like to make this thing more efficient, so any help will be appreciated. And I'll go look into making this code more efficient.
|
|
|
|
Clark (OP)
|
|
August 14, 2011, 08:40:33 PM |
|
Ok, well I messed with the code a little bit, and I've eliminated a very inefficient jQuery call. Here is the updated table from my last post: Rows | Calc | No Calc | 50 | 10.1 | 9.3 | 100 | 19.1 | 17.2 | 250 | 47.1 | 45.7 | 500 | 73.6 | 72.1 |
The new numbers are much more acceptable at the high row counts, especially considering that the book used to take almost a second (~800ms) to process a single message when displaying 500 rows. GeniuSxBoy, thanks for pointing out how shamefully slow the update rate was and making me get in gear to produce more efficient code! The new code is now live. Hint: for jQuery users, this is the power of the $.each() operator at work.
|
|
|
|
Clark (OP)
|
|
August 15, 2011, 12:55:03 AM |
|
New Feature Announcement:
I have completed implementation of price grouping on the order book. It is available under the Controls section. You may group by 0.01, 0.05, 0.10, and 0.25 ($/BTC). This range may always be expanded depending on demand.
I think this feature will enable much greater awareness of the order book as a whole, similar to the graphical order books you see on other sites. With prices grouped, the order book is not a jumpy as before since row entries are not being added and removed that often.
Enjoy, and send bug reports (and donations)!
|
|
|
|
GeniuSxBoY
|
|
August 15, 2011, 02:35:36 AM |
|
Site is working like a charm, thank you
|
Be humble!
|
|
|
Kermee
|
|
August 15, 2011, 02:40:07 AM |
|
Anyone using Chrome 14 Beta having issues? Going from 12 to 14 seems to have broken WebSockets for me Cheers, Kermee
|
|
|
|
|