mirror of
https://git.hmsn.ink/coin/bot.git
synced 2026-03-19 15:55:01 +09:00
tp 범위 조절
This commit is contained in:
4
index.js
4
index.js
@@ -20,7 +20,7 @@ let curPrice = null;
|
||||
|
||||
async function bootstrap() {
|
||||
try {
|
||||
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 336);
|
||||
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 112);
|
||||
bars = ohlcv.map(c => ({
|
||||
t: c[0],
|
||||
o: c[1],
|
||||
@@ -84,7 +84,7 @@ function initWs() {
|
||||
};
|
||||
|
||||
bars.push(bar);
|
||||
if (bars.length > 336) bars.shift();
|
||||
if (bars.length > 112) bars.shift();
|
||||
|
||||
logger.debug('새로운 분봉 수신', {
|
||||
timestamp: new Date(bar.t).toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user