新版仿ok交易所-后端
1
zj
2 days ago 640ccb9229224642515527daf87f308a7aa9bdf4
trading-order-huobi/src/main/java/com.yami.trading.huobi/data/klinejob/Kline1WeekJob.java
@@ -28,7 +28,7 @@
    @Autowired
    private CryptosKlineService cryptosKlineService;
    @Scheduled(cron = "0 0 0 ? * 1")
    @Scheduled(cron = "0 1 0 ? * 2")
    public void taskJob() {
        StopWatch stopWatch = new StopWatch();
        log.info("Kline1WeekJob start ... ");
@@ -37,7 +37,7 @@
        for (int i = 0; i < item_list.size(); i++) {
            Item item = item_list.get(i);
            if (MarketOpenChecker.isMarketOpenByItemCloseType(item.getOpenCloseType()) && item.getType().equals("cryptos")) {
                if (Item.cryptos.equalsIgnoreCase(item.getType())) {
                if (Item.cryptos.equalsIgnoreCase(item.getType()) && !item.isFake()) {
                    cryptosKlineService.saveOne(item.getSymbol(), Kline.PERIOD_1WEEK);
                } else {
                    klineService.saveKline1Week(item.getSymbol(), Kline.PERIOD_1WEEK);