新版仿ok交易所-后端
1
zyy
2025-10-14 6d4412f86998af137b32baff124df85373420635
1
1 files modified
8 ■■■■ changed files
trading-order-admin/src/main/java/com/yami/trading/admin/task/RealtimeWebsocketServer.java 8 ●●●● patch | view | raw | blame | history
trading-order-admin/src/main/java/com/yami/trading/admin/task/RealtimeWebsocketServer.java
@@ -113,8 +113,8 @@
            if (currentValue != null && currentValue != 0) {
                realtime.setClose(new BigDecimal(Arith.add(close, currentValue.doubleValue())));
                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))));
                //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))));
            }
            Double high = DataCache.getRealtimeHigh().get(symbol);
@@ -148,8 +148,8 @@
                    realtime.setOpen(new BigDecimal(h24Before));
                }*/
                /*if (realtime.getSymbol().equals("axsusdt")) {
                    System.out.println("axsusdt2" + realtime);
                /*if (realtime.getSymbol().equals("galausdt")) {
                    System.out.println("galausdt222" + realtime);
                }*/
                DataCache.putRealtime(symbol, realtime);
                // System.out.println(JSONObject.toJSONString(realtime));