新版仿ok交易所-后端
peter
2025-09-22 4dede9bdf43c2e4fa84bd5bfc538e3a4b39c1b30
trading-order-admin/src/main/java/com/yami/trading/api/controller/KlineController.java
@@ -100,10 +100,12 @@
            BigDecimal currentValue = AdjustmentValueCache.getCurrentValue().get(symbol);
            if (currentValue != null) {
                data.forEach(kline -> {
                    if (kline.getClose().compareTo(kline.getLow()) >= 0 && kline.getClose().compareTo(kline.getHigh()) <= 0) {
                        kline.setClose(kline.getClose().add(currentValue));
                    }
                    kline.setOpen(kline.getOpen().add(currentValue));
                    kline.setLow(kline.getLow().add(currentValue));
                    kline.setHigh(kline.getHigh().add(currentValue));
                    kline.setClose(kline.getClose().add(currentValue));
                });
            }
            return Result.succeed(this.build(data, line, symbol));