| | |
| | | realtime.setTs(Long.valueOf(realtime.getTs() + "000")); |
| | | } |
| | | realtime.setName(item.getName()); |
| | | if (high == null || realtime.getHigh().doubleValue() > high) { |
| | | /*if (high == null || realtime.getHigh().doubleValue() > high) { |
| | | DataCache.getRealtimeHigh().put(symbol, realtime.getHigh().doubleValue()); |
| | | } |
| | | if ((low == null || realtime.getLow().doubleValue() < low) && realtime.getLow().doubleValue() > 0) { |
| | | DataCache.getRealtimeLow().put(symbol, realtime.getLow().doubleValue()); |
| | | }*/ |
| | | if (high != null) { |
| | | realtime.setHigh(BigDecimal.valueOf(high)); |
| | | } |
| | | if (low != null) { |
| | | realtime.setLow(BigDecimal.valueOf(low)); |
| | | } |
| | | this.dataDBService.saveAsyn(realtime); |
| | | } |