新版仿ok交易所-后端
1
zj
2026-01-21 01e664e79f39091408570625f538898683658b92
trading-order-admin/src/main/java/com/yami/trading/api/controller/KlineController.java
@@ -97,15 +97,22 @@
                }
            }
            BigDecimal currentValue = AdjustmentValueCache.getCurrentValue().get(symbol);
            /*BigDecimal currentValue = AdjustmentValueCache.getCurrentValue().get(symbol);
            if (currentValue != null) {
                data.forEach(kline -> {
                    kline.setOpen(kline.getOpen().add(currentValue));
                    kline.setLow(kline.getLow().add(currentValue));
                    kline.setHigh(kline.getHigh().add(currentValue));
                    kline.setClose(kline.getClose().add(currentValue));
                    *//*logger.info("==currentValue==close:{}, low:{}, high:{}, open:{}, currentValue:{}",
                            kline.getClose(), kline.getLow(), kline.getHigh(), kline.getOpen(), currentValue);*//*
                    if (!kline.isAdjusted()){
                        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.setAdjusted(true);
                    }
                });
            }
            }*/
            return Result.succeed(this.build(data, line, symbol));
        } catch (Exception e) {
            logger.error("getKline error", e);