Bitcoin Forum
May 07, 2024, 02:11:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Last post and i'm off to bed -- but I have another question  (Read 498 times)
the founder (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 251


Bitcoin


View Profile WWW
March 29, 2013, 04:23:54 AM
 #1

I was revamping how the algorithm works for calculating prices,  my goal is to provide you guys with the most efficient, most accurate spot price of Bitcoin possible.   Based on the traffic to the webapp, android and RSS feeds,  I am guessing I am pretty successful in it.

However this flash crash today had me scratching my head on how to proceed.  

Right now it takes Mt.Gox,  CampBX, and a few others, averages them by weight and provides a price.

As it stands now it's lopsided towards mt.gox in volume so sometimes it dominates the overall price output, and with the case today with such wild fluctuations coupled with extreme delay in results it made it difficult to keep up with the rapid assault of price points (we had a 10 dollar reported difference between CampBX and Mt.Gox within 3 seconds of each other, and most likely the reason was because Mt.Gox was running so far behind).

I'm looking for advice on how to refine it,  is there anyway to get even more accurate and timely pricing.

It's currently something like this (it's an example!  hence why i'm using 1 dollar!)

Exchange 1 -  7 BTC traded 1 dollar each
Exchange 2 -  2 BTC traded 90 cents each
Exchange 3 - 1 BTC traded 1.15 each

In the above example it's going to come to $1.03 or something close to that (as I noted if my math is off it's because I am about to pass out typing),  which is how it should work.

But today we had this:

Exchange 1 -  7 BTC traded .5 dollar each
Exchange 2 -  2 BTC traded 90 cents each
Exchange 3 - 1 BTC traded 1.15 each

Forcing all sorts of weird results like the average price is now something like $0.68 cents (as I noted if my math is off it's because I am about to pass out typing)

that I had to actively correct in real time (such as turning off factoring Mt.Gox for a bit)

So I am looking for advice on how to correct for this for http://www.ounce.me

Any ideas?




Bitcoin RSS App / Bitcoin Android App / Bitcoin Webapp http://www.ounce.me  Say thank you here:  1HByHZQ44LUCxxpnqtXDuJVmrSdrGK6Q2f
1715091119
Hero Member
*
Offline Offline

Posts: 1715091119

View Profile Personal Message (Offline)

Ignore
1715091119
Reply with quote  #2

1715091119
Report to moderator
1715091119
Hero Member
*
Offline Offline

Posts: 1715091119

View Profile Personal Message (Offline)

Ignore
1715091119
Reply with quote  #2

1715091119
Report to moderator
1715091119
Hero Member
*
Offline Offline

Posts: 1715091119

View Profile Personal Message (Offline)

Ignore
1715091119
Reply with quote  #2

1715091119
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715091119
Hero Member
*
Offline Offline

Posts: 1715091119

View Profile Personal Message (Offline)

Ignore
1715091119
Reply with quote  #2

1715091119
Report to moderator
BTC Books
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile
March 29, 2013, 04:42:25 AM
 #2

Bitcoinity posts the lag, when Gox is groaning.  So I'm guessing that means the API from any exchange will let you see what the lag is on their exchange.  True?

So do your calculations - but toss out any exchange that lags by half the time interval you've set for auto-updates to ounce.me.

It might not be spot-on accurate, but it'll be a helluva lot more accurate than your second example.

Dankedan: price seems low, time to sell I think...
Pages: [1]
  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!