Closed nop33 closed 1 year ago
Thanks!
I'm noticing some artefacts in the graph, as if the interpolation between the last 2 points was broken.
It is caused by the fact that there can be 2 times the same date (day before today) overlayed in the chart.
I'm noticing some artefacts in the graph, as if the interpolation between the last 2 points was broken. It is caused by the fact that there can be 2 times the same date (day before today) overlayed in the chart.
Hm, strange, I'll test with some other wallets, but in all my tests I ensured that each day is unique in the set of data...
@mvaivre I've improved the algorithm that cleans the last chart data by ensuring there are no duplicates and that the "today"'s date is always skipped so that we can manually add the latest price.
Closes #774
The problem was that the last item of the response of the
getHistoricalPrice
endpoint was slightly different than the latest price from thegetPrice
endpoint. The fix removes today's price received from the 1st endpoint and adds the one from the 2nd.