Clark (OP)
|
|
June 03, 2011, 07:12:18 AM Last edit: November 10, 2011, 08:37:03 PM by Clark |
|
I have created a web page to view the real time MtGox time & sales data as it comes across the pipe. http://bitcoin.clarkmoody.com/Please note that this service requires WebSockets, and Google Chrome seems to be the only browser that supports the technology at the moment. The MtGox data now comes down the pipes on socket.io, so browser compatibility should be much broader than before.Browser Support:- Google Chrome & Safari support WebSockets out of the box
- Firefox 4: Set network.websocket.override-security-block to true in about:config
- Opera: enable WebScokets in opera:config
If you want to see just a ticker updating in real time, I have created another page that uses polling as a fallback when WebSockets don't work: http://bitcoin.clarkmoody.com/ticker/There is also the issue of proxy servers getting confused by the unsecured WebSockets protocol. There is solid evidence that secure WebSockets (wss://) are routed properly by transparent proxy servers (maybe this is on MagicalTux's todo list already). Whatever the case, if the site works for you, please enjoy and send a donation my way. I am in the process of developing depth of market tables for displaying the order book in real time. You can find the Order Book here: http://forum.bitcoin.org/index.php?topic=14412
|
|
|
|
EpicNoob
Newbie
Offline
Activity: 41
Merit: 0
|
|
June 03, 2011, 07:22:38 AM Last edit: June 29, 2011, 03:17:57 AM by DarthWader |
|
n/a
|
|
|
|
Kolky
Newbie
Offline
Activity: 5
Merit: 0
|
|
June 03, 2011, 10:19:46 AM |
|
Works great! There's however a small visual glitch that is quite annoying; whenever you have the site open long enough the list of "Time&Sales" goes over the credits and behind the console and then on down even more. Could you put this is in an overflow box or something, with a scrollbar probably? Cheers!
|
|
|
|
w0mbat
|
|
June 03, 2011, 11:48:30 AM |
|
nice work but if u use it for a longer time the trading data is running over the credts.
|
*** http://btcxc.info/ <-> Your source for everything around trading & mining Bitcoins! ***
|
|
|
RandyMarsh
|
|
June 03, 2011, 12:54:00 PM |
|
That looks fucking killer! Well done! I can see all my sales going through, never realised i was selling to so many people absolutely tiny amounts.
|
Stan?! STAN?!?!
|
|
|
gongcheng
Member
Offline
Activity: 84
Merit: 10
|
|
June 03, 2011, 02:49:41 PM |
|
It seems to me that it doesn't work.
|
|
|
|
FooDSt4mP
|
|
June 03, 2011, 03:09:47 PM |
|
It seems to me that it doesn't work.
What browser are you using? Do you have websockets enabled? It works fine for me in Chromium. It would be nice if the prices were put in a div with overflow:hidden, but it's fully functional.
|
As we slide down the banister of life, this is just another splinter in our ass.
|
|
|
Clark (OP)
|
|
June 03, 2011, 03:54:21 PM Last edit: June 03, 2011, 04:11:55 PM by Clark |
|
Thanks for the quick feedback and the donation! I had to sleep between launching and reading the replies, but I've made some style changes.
Now (for me at least) the trades go behind the credits and console, and the console doesn't scroll up the page when the trades extend beyond the window.
|
|
|
|
BombaUcigasa
Legendary
Offline
Activity: 1442
Merit: 1005
|
|
June 03, 2011, 07:15:19 PM |
|
Click for larger image Works in Chrome but FF 4.0.1 is too old for it... Someone donate to this guy!
|
|
|
|
Maged
Legendary
Offline
Activity: 1204
Merit: 1015
|
|
June 03, 2011, 07:22:34 PM |
|
As I've said to these sites before, they work in Firefox if you override the security block. Set network.websocket.override-security-block to true in about:config DO NOT ENABLE THIS IF YOU ARE BEHIND A PROXY
|
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
June 03, 2011, 09:05:02 PM |
|
You should try using pusher.com technology, its universal
|
|
|
|
Clark (OP)
|
|
June 03, 2011, 09:37:10 PM |
|
You should try using pusher.com technology, its universal
The compatibility issues are not on my end: MtGox does not provide a meaningful fallback to the WebSocket data feed. I know that you can poll the Trade API http addresses, but there are other issues with that. For instance, the getTrades link provides WAY too much data (a couple megabytes) each time you call it. There are thousands of trades on there now. Ideally, MtGox could add a few api parameters so you could ask for trades from a certain trade number or date instead of getting all trades from the past 48 hrs. I have been checking out http://socket.io/ as an alternative as well.
|
|
|
|
BombaUcigasa
Legendary
Offline
Activity: 1442
Merit: 1005
|
|
June 03, 2011, 09:45:13 PM |
|
Had this open for hours, more fun to watch than the pretty color charts
|
|
|
|
Clark (OP)
|
|
June 03, 2011, 09:59:54 PM |
|
Had this open for hours, more fun to watch than the pretty color charts Glad you liked it. Out of curiosity, did you update the number of output lines for the console? And what did you settle on?
|
|
|
|
BombaUcigasa
Legendary
Offline
Activity: 1442
Merit: 1005
|
|
June 04, 2011, 12:23:45 AM |
|
Had this open for hours, more fun to watch than the pretty color charts Glad you liked it. Out of curiosity, did you update the number of output lines for the console? And what did you settle on? 30
|
|
|
|
WakiMiko
Newbie
Offline
Activity: 59
Merit: 0
|
|
June 04, 2011, 08:32:26 PM |
|
works in firefox 4, just set network.websocket.override-security-block to true
|
|
|
|
dingus
|
|
June 05, 2011, 02:33:16 AM |
|
Very nice. I like it!
|
ding·us/ˈdiNGgəs/ Noun: Used to refer to something whose name the speaker cannot remember, is unsure of, or is humorously or euphemistically omitting
|
|
|
RandyMarsh
|
|
June 08, 2011, 07:05:07 PM |
|
has something changed with the Ticker? Im not getting the list of trades scrolling down the screen anymore?
|
Stan?! STAN?!?!
|
|
|
Clark (OP)
|
|
June 08, 2011, 09:10:54 PM |
|
has something changed with the Ticker? Im not getting the list of trades scrolling down the screen anymore?
Not enough donations It still works for me, on multiple computers it various locations. Did you get a 'WebSocket closed' message? How long was it running before it stopped?
|
|
|
|
RandyMarsh
|
|
June 08, 2011, 09:29:33 PM |
|
It worked fine for me about 22 hours ago, last time i was online, im still getting the console lines at the bottom and the trades are comming up in there like normal, its just not generating a list of the trades in the main part of the page.
PS. I sent a donation before, because this is awesome.
|
Stan?! STAN?!?!
|
|
|
|