Now, for that spec of our BTC/USD pricing:
We currently use a weighted average of mid ((bid+ask)/2) prices from four exchanges: MtGox, Tradehill, Coinbase, and Bitfloor. While a price is considered 'good', it has a weight in the average of 1.
A price is considered good for a 5 second window since it was last updated. When we lose connectivity to an exchange, its price will stop updating and will age. After 5 seconds, the weighting of the price starts to exponentially decay (based on time), until eventually, its effect diminishes completely.
We poll for new prices from the exchanges every second, and use a streaming connection to MtGox.
Preety sure tradehill is dead so im not really sure how your using there priceWe currently use a weighted average of mid ((bid+ask)/2) prices from four exchanges: MtGox, Tradehill, Coinbase, and Bitfloor. While a price is considered 'good', it has a weight in the average of 1.
A price is considered good for a 5 second window since it was last updated. When we lose connectivity to an exchange, its price will stop updating and will age. After 5 seconds, the weighting of the price starts to exponentially decay (based on time), until eventually, its effect diminishes completely.
We poll for new prices from the exchanges every second, and use a streaming connection to MtGox.