Bitcoin Forum
November 01, 2024, 01:34:18 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 »
  Print  
Author Topic: Real Time Charting, Order Book, and Time & Sales  (Read 85537 times)
molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
November 24, 2012, 07:39:55 PM
 #321

Thanks so much for the details!

Here is a screenshot from the site as it stands currently:



It looks as if the historic chart data that loads from the server is correct at least. That means the problem is happening with the real time feed. I have confirmed that my server-side database contains just one trade at that time (I also show 5 trades total with that volume - 1700BTC. Just a bit of trivia.)

Also note that the candles shown in my screenshot differ from those created in real time by the streaming feed.

I think bitcoincharts creates its graphics using polled historic data only, so it will not experience this problem. I'm not sure about bitcoin-analytics and whether the charts are created from streaming or polled data.

The discrepancy in candle shapes could be chalked up to timing differences / lag in the streaming feed over the stored MtGox database information. The double-volume bug, however, is more elusive. It would be nice to have a screenshot of the Time & Sales from that moment, so see if the trade showed up twice in that feed. If it so happened that the platform somehow had two connections to the streaming data (through the disconnect/reconnect behavior of the MtGox feed resetting every hour), then it would get double the data, and the chart would add trades twice.

As for a solution to this problem, it seems like it's probably going to be complicated. Since we're using socket.io to get the streaming data, we have to deal with black-box software. I'm not convinced that we don't have multiple connections to the streaming data sometimes. Diagnosing bugs like this usually involve waiting for something to happen in the real time feed again, which could take time.

I could put together a hack that reloads the chart data every so often, but that would ramp my server bandwidth usage and simply patch over this problem. I could instruct socket.io to NOT reconnect upon failures, requiring a site refresh, but our current reconnect solution is the result of complaints over having to refresh the page.

Maybe we could all keep looking more closely at the feed to notice if the Time & Sales starts showing double trades. I will look over the code again to see if there's any fix to be had there. Thanks for pointing this out to me.

couldn't you just store the trade IDs (tid) from the socket.io feed and check for duplicates when receiving new trades?

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
November 24, 2012, 08:12:35 PM
 #322

Oh wow, you are correct. I guess I was looking at the result of the streaming construction of the chart on a tab that has been open for ~14 hours. So this means that the streaming chart was correct in this case.

So the problem might lie in the server implementation of bar generation. The trade shows up once in the database, but the way that trades are turned into bars might have been corrupted.

This sounds possible. Maybe that quirk occurs when there is exactly one trade in the candles timespan (1 minute in this case and exactly one trade in that minute). It might be counting the volume twice because this trade is the last trade and the first trade within that candle at the same time or something.

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
keewee
Legendary
*
Offline Offline

Activity: 1025
Merit: 1000



View Profile
November 25, 2012, 11:15:49 PM
 #323

This has been happening since early September at least. See this post by adamstgBit and my reply: https://bitcointalk.org/index.php?topic=82626.msg1180152#msg1180152

Confused me at the time but I assumed it was just a difference in the way the figures were calculated. I would have sent a bug report but didn't know enough about it to know it actually was a bug. Seems to be fixed now though  Smiley

1keewee2vRp63UWvPBynT55ZYw6SUCKDB
Yuhfhrh
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
December 15, 2012, 03:16:48 AM
 #324

By the way, bitcoin.clarkmoody.com has been down.  Sad
Clark (OP)
Hero Member
*****
Offline Offline

Activity: 548
Merit: 502


So much code.


View Profile WWW
December 15, 2012, 04:44:27 AM
 #325

By the way, bitcoin.clarkmoody.com has been down.  Sad

Yeah, I don't know what's happening. I'm contacting the host now. I assumed it would come back after a short time, but it's been down for hours. Please stand by.

phungus
Full Member
***
Offline Offline

Activity: 128
Merit: 100


I'm doin' fine on cloud 9


View Profile
December 16, 2012, 04:33:37 PM
 #326


Hi Clark,

I hope this was resolved for you. We're going through some transition issues with the hosting service and a number of us have been trying to bootstrap the support thing while RG has personal-life issues.

Please let us know if something is still not right and we'll get it working again. We hope to avoid these kinds of unresolved outages in the future because they don't help anyone. :-)

I think I know what server this one was and I think it was fixed yesterday. I hope that is the case here.

Thanks,
-p

I can do stuff
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
January 11, 2013, 11:18:41 AM
 #327

Hi!

 Why http://bitcoin.clarkmoody.com/ is outdated?

 The buy orders does not reflect the real live from mtgox.

 I already opened it from 3 different machines, same result.

 Mtgoxlive is working... Also, the Market Depth here is okay too: http://bitcoincharts.com/markets/mtgoxUSD_depth.html

Tks!
Thiago
Clark (OP)
Hero Member
*****
Offline Offline

Activity: 548
Merit: 502


So much code.


View Profile WWW
January 11, 2013, 04:57:58 PM
 #328

The buy orders does not reflect the real live from mtgox.

I already opened it from 3 different machines, same result.

Mtgoxlive is working... Also, the Market Depth here is okay too: http://bitcoincharts.com/markets/mtgoxUSD_depth.html


Are you getting a connection error in the console?

thph
Sr. Member
****
Offline Offline

Activity: 345
Merit: 250



View Profile
January 11, 2013, 10:50:15 PM
 #329

There is no error message - just the wrong orders

14.22888 0.0508 1228.0
14.22893 0.4000 1228.4
14.22900 0.0534 1228.5
14.22999 0.2002 1228.7
14.23000 1658.0102 2886.7
14.23193 0.0711 2886.8
14.23260 0.0766 2886.8
14.23425 0.0203 2886.9
14.23623 0.1000 


ask side

btc 1JZC6AfStkJ32mmhEkTjnfHZSFUHHzFhmD
atb APdYw1DsN7zxgofHBq5cCgFFpjBY1MYDx5
Clark (OP)
Hero Member
*****
Offline Offline

Activity: 548
Merit: 502


So much code.


View Profile WWW
January 11, 2013, 11:57:19 PM
 #330

There is no error message - just the wrong orders

So what are the right orders? I need to know what it should be in order to fix any problems.

thph
Sr. Member
****
Offline Offline

Activity: 345
Merit: 250



View Profile
January 12, 2013, 12:21:41 AM
 #331

Hi,
the orders are shown in clarkmoody are not right,
i for example have a selling order at 14.28026 since quite a while, it dont show up.
Mtgoxlive is working, all asks and bids are OK.

Never saw it like that, the first row in clarkmoody is OK.
sorry for my english

btc 1JZC6AfStkJ32mmhEkTjnfHZSFUHHzFhmD
atb APdYw1DsN7zxgofHBq5cCgFFpjBY1MYDx5
Clark (OP)
Hero Member
*****
Offline Offline

Activity: 548
Merit: 502


So much code.


View Profile WWW
January 12, 2013, 01:01:14 AM
 #332

Hi,
the orders are shown in clarkmoody are not right,
i for example have a selling order at 14.28026 since quite a while, it dont show up.
Mtgoxlive is working, all asks and bids are OK.

Never saw it like that, the first row in clarkmoody is OK.
sorry for my english

It should be fixed now. I see your order on there now.

thph
Sr. Member
****
Offline Offline

Activity: 345
Merit: 250



View Profile
January 12, 2013, 01:14:44 AM
 #333

Thanks - workin now !
Great !
Thanks

btc 1JZC6AfStkJ32mmhEkTjnfHZSFUHHzFhmD
atb APdYw1DsN7zxgofHBq5cCgFFpjBY1MYDx5
phatsphere
Hero Member
*****
Offline Offline

Activity: 763
Merit: 500


View Profile
January 14, 2013, 12:57:19 PM
 #334

one bug, one feature request:

1. in firefox 18, when i set the controls to group by price of 0.01, and i reload. the form-checkbox is enabled, but it isn't grouped. when i un-set the checkbox, it is grouped. somehow, this seems to be stored but not properly parsed or set when reloaded.

2. would it be hard to do the following: when i hover over a bid/ask in the long list at the bottom, to highlight the corresponding row in the other column, where the cumulative bid/ask value is "almost" the same? that would help to assess the inequality of bids vs. asks!

p
Clark (OP)
Hero Member
*****
Offline Offline

Activity: 548
Merit: 502


So much code.


View Profile WWW
January 14, 2013, 10:18:37 PM
 #335

1. in firefox 18, when i set the controls to group by price of 0.01, and i reload. the form-checkbox is enabled, but it isn't grouped. when i un-set the checkbox, it is grouped. somehow, this seems to be stored but not properly parsed or set when reloaded.

2. would it be hard to do the following: when i hover over a bid/ask in the long list at the bottom, to highlight the corresponding row in the other column, where the cumulative bid/ask value is "almost" the same? that would help to assess the inequality of bids vs. asks!

1. Are you getting any messages in the JavaScript console when you load the page? Any script errors?

2. This is certainly an interesting thing to consider. I might tool around with something like this in the future.

BTCdude007
Sr. Member
****
Offline Offline

Activity: 686
Merit: 250



View Profile
January 16, 2013, 12:12:41 AM
 #336

One feature request...hide small trades and quotes.

There are a lot of 0.01 and like trades and quotes that lead to clutter. It would be nice to have a user selectable control
whereby you can hide these.

I would like to set my limit to 1BTC, so all ungrouped quotes < 1BTC and Time&Sales < 1BTC are hidden.

Thanks for such a useful website. I sent you a 0.5BTC donation a few days back.
m_yaw
Member
**
Offline Offline

Activity: 113
Merit: 10


View Profile
January 19, 2013, 03:35:58 PM
 #337

Maybe this has been asked before but why do I see completely different ask/bids on the EUR view compared to the real EUR ask/bids on mtgox?
Clark (OP)
Hero Member
*****
Offline Offline

Activity: 548
Merit: 502


So much code.


View Profile WWW
January 19, 2013, 04:06:35 PM
 #338

Maybe this has been asked before but why do I see completely different ask/bids on the EUR view compared to the real EUR ask/bids on mtgox?

You should be able to refresh and have the proper order book. I'm still working out the kinks in a new data-delivery platform.

m_yaw
Member
**
Offline Offline

Activity: 113
Merit: 10


View Profile
January 19, 2013, 08:05:17 PM
 #339

k, thx. Now it looks much more reasonable!
PAPASO
Newbie
*
Offline Offline

Activity: 36
Merit: 0



View Profile
January 23, 2013, 10:33:16 AM
 #340

Can you add weekly mouthly chart in you web?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!