新版仿ok交易所-后端
1
zyy
2025-09-20 bfe248fc03bfd6973d1137b8a3601914ce63fcf5
1
1 files modified
4 ■■■ changed files
trading-order-admin/src/main/java/com/yami/trading/api/controller/KlineController.java 4 ●●● patch | view | raw | blame | history
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));