From f00de76c83fc2567ba9449736b649c8943cdf9e8 Mon Sep 17 00:00:00 2001 From: bangae1 Date: Sat, 30 Aug 2025 23:40:49 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=AC=ED=94=84=ED=8A=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- strategy.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 4c9fb03..f8477f4 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ let curPrice = null; async function bootstrap() { try { - const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 200); + const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 672); bars = ohlcv.map(c => ({ t: c[0], o: c[1], @@ -82,7 +82,7 @@ function initWs() { }; bars.push(bar); - if (bars.length > 300) bars.shift(); + if (bars.length > 672) bars.shift(); logger.debug('새로운 분봉 수신', { timestamp: new Date(bar.t).toISOString(), diff --git a/strategy.js b/strategy.js index ca9a416..1422280 100644 --- a/strategy.js +++ b/strategy.js @@ -72,7 +72,7 @@ import {OpenAI} from "openai"; - VWAP 재테스트 시 **캔들 종가 기준** 필수 확인" - 아래 1시간봉 200개 데이터 입니다. + 아래 15분봉 데이터 입니다. [데이터 타입] [{"t":,"o":,"h":,"l":,"c":,"v":}, …]