1. 볼랜저 추가

2. 영호 사는거 파는거 디테일 추가
3. 사고 파는 Result 필드 추가 및 데이터 갖고 있게끔만 처리 (추후 Form에 올릴수 있게 할 예정)
This commit is contained in:
kyh
2024-06-19 12:51:35 +09:00
parent a6334dcc15
commit d83a01b8e2
4 changed files with 169 additions and 9 deletions

View File

@@ -556,11 +556,20 @@ namespace BitgetAPI.WebService
// 없는 경우 추가
else
{
lastCandleData.Close = candleData.Open;
// 새 데이터 등록
candleDataList.Add(candleData);
// 기존 데이터 삭제
if(candleDataList.Count > 250)
candleDataList.RemoveAt(0);
{
var minData = candleDataList.Min(t => t.Argument);
var minCandle = candleDataList.FirstOrDefault(t => t.Argument == minData);
if (minCandle != null)
{
candleDataList.Remove(minCandle);
}
}
}
}
}