| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * 深度、近期交易记录 websocket启动服务 |
| | | */ |
| | | @Component |
| | |
| | | |
| | | 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); |