| | |
| | | map.put("low", realtime.getLow()); |
| | | |
| | | BigDecimal currentValue = AdjustmentValueCache.getCurrentValue().get(symbol); |
| | | if (currentValue != null) { |
| | | /*if (currentValue != null) { |
| | | map.put("low", realtime.getLow().add(currentValue)); |
| | | } |
| | | if (currentValue != null) { |
| | |
| | | map.put("high", realtime.getHigh().add(currentValue)); |
| | | } |
| | | map.put("low", newLow); |
| | | } |
| | | }*/ |
| | | |
| | | if( realtime.getVolume() != null){ |
| | | map.put("volume", realtime.getVolume().setScale(2, RoundingMode.HALF_UP)); |
| | |
| | | } |
| | | if(Item.forex.equalsIgnoreCase(bySymbol.getType())){ |
| | | market = new StockMarket(); |
| | | market.setTime_zone( "Asia/Shanghai"); |
| | | market.setTime_zone( "Asia/Tokyo"); |
| | | if(MarketOpenChecker.isMarketOpenByItemCloseType(bySymbol.getOpenCloseType())){ |
| | | market.setStatus("交易中"); |
| | | }else{ |
| | |
| | | map.put("high", high != null ? high.setScale(decimal, RoundingMode.HALF_UP) : null); |
| | | BigDecimal low = realtime.getLow(); |
| | | map.put("low", low != null ? low.setScale(decimal, RoundingMode.HALF_UP) : null); |
| | | if (currentValue != null) { |
| | | /*if (currentValue != null) { |
| | | BigDecimal newLow = low != null ? low.add(currentValue).setScale(decimal, RoundingMode.HALF_UP) : BigDecimal.ZERO; |
| | | if (newLow.compareTo(high) > 0) { |
| | | map.put("high", high.add(currentValue).setScale(decimal, RoundingMode.HALF_UP)); |
| | | } |
| | | map.put("low", newLow); |
| | | } |
| | | }*/ |
| | | |
| | | } |
| | | } |