esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
207 stars 23 forks source link

ESI market history average vs median #451

Open krojew opened 7 years ago

krojew commented 7 years ago

Bug

Request

/markets/{region_id}/history/

Response

{ "average": 5.25, "date": "2015-05-01", "highest": 5.27, "lowest": 5.11, "order_count": 2267, "volume": 16276782035 }

Expected

After some investigation, the "average" field corresponds to the median in Eve client. Assuming this is not a coincidence, either the field is incorrectly named and returns incorrect data, or the Eve client treats average as median, which is totally different. If this is a strange coincidence, we could use the "median" field in the response, like in the Eve client. Either way this should be clarified.

lukasni commented 6 years ago

Adding on to this, the highest and lowest values on that endpoint are also not 100% clear. Is there any trimming of outliers happening or are they flat out "lowest price this type moved for in this region on that date"?

antihax commented 6 years ago

Could we get all the stats from the graphs and table if those are easily available? And a good explanation of what all the stats really are? Never seen a good answer on this.