balancednetwork / balanced-backend

Backend to balanced stats page and other services
Apache License 2.0
0 stars 1 forks source link

Look into candles #31

Closed robcxyz closed 8 months ago

robcxyz commented 9 months ago
image

Weirdly doesn't seem to be an issue in 4 hour candles

One other weird issue i noticed, some candles are displayed incorrectly here and there

https://app.balanced.network/trade/BALN_bnUSD

robcxyz commented 9 months ago

@hetfly - Hey man, I'm digging into the data but it is not obvious to me which exact lines should be red. Can you take a closer look and if the data is corrupted tell me exactly where?

hetfly commented 9 months ago

@robcxyz looking at the picture above, the candle with the arrow should have open equal to the previous candle close value. There are also wrong values for high and low, for example here

image

the candles should never jump like that, every candle starts at the value where the previous one was closed (the thick parts). The wicks represent high and low during the given time period.

So to identify the wrong data, just check if the candle has open equal to previous candles close

Edit: Also, when the candle has wrong open and close, it seems to always have open equal to close