How do websites get prices for a coin?

0

There are websites with historical data of coins. How do they get it?

Do they get the price from 10 exchanges at the same time, then divide by 10?

Kyle Graham

Posted 2018-02-01T23:09:55.733

Reputation: 472

Question was closed 2018-02-03T05:57:37.630

Every website may have a different way of aggregating this data. The method you mentioned would work as long as none of the exchanges report bad data.chytrik 2018-02-01T23:27:24.307

@chytrik do you know where I can find the different ways that websites do it?

I imagine some check the set of prices for outliers before averaging, and some may even give weight to some exchanges more, right?

Thanks for answering – Kyle Graham 2018-02-01T23:29:51.770

if I were you I would start by checking out some websites that provide a service like this, and see if they publish any info on their specific algorithms. There is no "right or wrong way" to do something like that, your method will likely need to be determined by your specific needs/application.chytrik 2018-02-02T00:05:23.407

@chytrik alright, if you write up what we discussed, I will mark it as the accepted answerKyle Graham 2018-02-02T00:11:50.280

Answers

0

Every website may have a different way of aggregating this sort of data. I would expect that the exact method used by each website will be determined by their specific needs/applications. There is no absolute "right or wrong way" to get this job done. For example:

  • A simple implementation someone makes for fun might just display the average of two different API calls
  • A firm like the CME will pull data from only the most legitimate sources, with external considerations to ensure the price data cannot be manipulated to game futures trades on their exchange

To find more info on some actual implementations, I would suggest looking up some websites that display data in the way you're looking for, and see if they provide any info on the algorithms/methods used. I would guess at least a few sites make that info public.

chytrik

Posted 2018-02-01T23:09:55.733

Reputation: 10 276