This commit is contained in:
2025-08-31 06:41:49 +09:00
parent 67328c9ec4
commit f4d3ff9e33
2 changed files with 26 additions and 29 deletions

View File

@@ -19,7 +19,7 @@ let curPrice = null;
async function bootstrap() {
try {
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 288);
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 50);
bars = ohlcv.map(c => ({
t: c[0],
o: c[1],
@@ -82,7 +82,7 @@ function initWs() {
};
bars.push(bar);
if (bars.length > 288) bars.shift();
if (bars.length > 50) bars.shift();
logger.debug('새로운 분봉 수신', {
timestamp: new Date(bar.t).toISOString(),