From bfc3db469e570d5ebee8564e588cdfb973725b16 Mon Sep 17 00:00:00 2001 From: kyh <1329522@naver.com> Date: Mon, 15 Jul 2024 16:08:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BitgetApi/WebService/WebConnection.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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);