diff --git a/BitgetApi/WebService/WebConnection.cs b/BitgetApi/WebService/WebConnection.cs index 0dbb0cd..5bbfcd3 100644 --- a/BitgetApi/WebService/WebConnection.cs +++ b/BitgetApi/WebService/WebConnection.cs @@ -1169,6 +1169,14 @@ namespace BitgetAPI.WebService { candleData.WebSocketUpdate = true; lastCandleData.Close = candleData.Open; + if(lastCandleData.High < lastCandleData.Close) + { + lastCandleData.High = lastCandleData.Close; + } + if (lastCandleData.Low > lastCandleData.Close) + { + lastCandleData.Low = lastCandleData.Close; + } var dt = candleData.Argument; dt = dt.AddSeconds(dt.Second * -1); dt = dt.AddMilliseconds(dt.Millisecond * -1);