종목변경 시 캔들차트 사라지는 현상 수정
This commit is contained in:
@@ -42,7 +42,6 @@ public class LiveStrategyScheduler {
|
||||
private final BarBuilder barBuilder;
|
||||
private final TradeSignalService tradeSignalService;
|
||||
private final OrderExecutionQueue orderExecutionQueue;
|
||||
private final LiveStrategyTimeframeService timeframeService;
|
||||
|
||||
/**
|
||||
* 3초마다 REALTIME_TICK 설정 종목을 순회하여 전략 판정 후 시그널 발행.
|
||||
@@ -58,8 +57,8 @@ public class LiveStrategyScheduler {
|
||||
if (s.getStrategyId() == null) continue;
|
||||
|
||||
String market = s.getMarket();
|
||||
String candleType = timeframeService.resolveCandleType(
|
||||
market, s.getUserId(), s.getDeviceId());
|
||||
String candleType = LiveStrategyTimeframeService.normalize(
|
||||
s.getCandleType() != null ? s.getCandleType() : "1m");
|
||||
|
||||
if (!ta4jStorage.exists(market, candleType)) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user