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?

  • 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 Feb 1 '18 at 23:27
  • @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 Feb 1 '18 at 23:29
  • 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 Feb 2 '18 at 0:05
  • @chytrik alright, if you write up what we discussed, I will mark it as the accepted answer – Kyle Graham Feb 2 '18 at 0:11

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.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.