Randomly color inverted candles but chart remains same
DanyLinuxoid opened this issue · 0 comments
Lightweight Charts™ Version: the one that is used in https://unpkg.com/lightweight-charts/dist/lightweight-charts.standalone.production.js
Steps/code to reproduce:
https://codepen.io/val9-dva/pen/jORgooa?editors=1010
Candles starting to get inverted here:
NOTE: Disregard minor inconsistency in some of the candles on "Expected" chart, since "Expected" chart is taken from CoinGecko/GeckoTerminal website, and the chart on "Actual" is chart based on candles from GeckoTerminal API (they don't use their own API...).
Thank God I stumbled upon this before prod, but I haven't found any reason on why this is happening.
I checked all the API's and logic, and found out that this is frontend issue.
Open/Close price seem to be correct, dates correct as well, all correct.
They just randomly started to be inverted (bullish looks like bearish and bearish looks like bullish) after some period of time...
Any ideas? Or maybe this is settings issue that I overlooked?