mirror of
https://git.hmsn.ink/coin/bot.git
synced 2026-03-20 00:02:16 +09:00
프롬프트 수정
This commit is contained in:
4
index.js
4
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(),
|
||||
|
||||
Reference in New Issue
Block a user