新版仿ok交易所-后端
1
zj
2026-05-21 31e6203a5bb778ad9d1c599171606c89c8edd3a3
trading-order-admin/src/main/java/com/yami/trading/admin/task/RealtimeWebsocketServer.java
@@ -96,7 +96,8 @@
         if (itemService.isSuspended(symbol)) {
            return;
         }
         Double currentValue = AdjustmentValueCache.getCurrentValue().get(symbol).doubleValue();
         BigDecimal adjustment = AdjustmentValueCache.getCurrentValue().get(symbol);
         double currentValue = adjustment != null ? adjustment.doubleValue() : 0D;
         double close = event.getTicker().getClose().doubleValue();
         double vol = event.getTicker().getVol().doubleValue();
         double amount = event.getTicker().getAmount().doubleValue();
@@ -111,7 +112,7 @@
         realtime.setVolume(new BigDecimal(vol));
         realtime.setAmount(new BigDecimal(amount));
         if (currentValue != null && currentValue != 0) {
         if (currentValue != 0) {
            realtime.setClose(new BigDecimal(Arith.add(close, currentValue)));
            //realtime.setVolume(new BigDecimal(Arith.add(vol, Arith.mul(Arith.div(currentValue, close), vol))));
            //realtime.setAmount(new BigDecimal(Arith.add(amount, Arith.mul(Arith.div(currentValue, close), amount))));