전략평가 매매시그널 표시안되는 문제 수정

This commit is contained in:
Macbook
2026-06-13 00:00:39 +09:00
parent 2c0570c95e
commit 24128e6a0a
7 changed files with 55 additions and 90 deletions
+3 -2
View File
@@ -139,10 +139,11 @@ export async function fetchBacktestHistoryCandles(
const raw = (await res.json()) as OHLCVBar[];
if (raw.length === 0) break;
const before = byTime.size;
for (const b of raw) byTime.set(b.time, b);
remaining -= raw.length;
if (byTime.size === before) break;
if (raw.length < batch) break;
remaining -= raw.length;
const oldest = raw[0]?.time;
if (!oldest || oldest <= 0) break;