| | |
| | | |
| | | public void bulid(String symbol, String line) { |
| | | RequestDataHelper.set("symbol", symbol); |
| | | List<Kline> list = hobiDataService.kline(itemService.findBySymbol(symbol).getSymbol(), line, null, |
| | | 0); |
| | | List<Kline> list = hobiDataService.kline(itemService.findBySymbol(symbol).getSymbol(), line, null); |
| | | KlineTimeObject model = new KlineTimeObject(); |
| | | Collections.sort(list); // 按时间升序 |
| | | model.setKline(list); |
| | |
| | | } |
| | | Kline kline = list.get(0); |
| | | BigDecimal currentValue = AdjustmentValueCache.getCurrentValue().get(symbol); |
| | | if (currentValue != null && currentValue.compareTo(BigDecimal.ZERO) > 0) { |
| | | if (currentValue != null && currentValue.compareTo(BigDecimal.ZERO) != 0) { |
| | | if (!kline.isAdjusted()){ |
| | | kline.setClose(kline.getClose().add(currentValue)); |
| | | kline.setOpen(kline.getOpen().add(currentValue)); |