| | |
| | | if ((depth == null || item.getAdjustmentValue() == null || item.getAdjustmentValue().intValue() == 0) && (item.getMultiple().intValue() == 0 || item.getMultiple().intValue() == 1)) { |
| | | return depth; |
| | | } |
| | | if(CollectionUtil.isNotEmpty(depth.getAsks()) ){ |
| | | if(depth != null && CollectionUtil.isNotEmpty(depth.getAsks()) ){ |
| | | List<DepthEntry> asks = depth.getAsks(); |
| | | for (int i = 0; i < asks.size(); i++) { |
| | | DepthEntry depthEntry = asks.get(i); |
| | |
| | | } |
| | | } |
| | | |
| | | if(CollectionUtil.isNotEmpty(depth.getBids())){ |
| | | if(depth != null && CollectionUtil.isNotEmpty(depth.getBids())){ |
| | | List<DepthEntry> bids = depth.getBids(); |
| | | for (int i = 0; i < bids.size(); i++) { |
| | | DepthEntry depthEntry = bids.get(i); |
| | |
| | | if ((trade == null || item.getAdjustmentValue() == null || item.getAdjustmentValue().doubleValue() == 0) && (item.getMultiple().doubleValue() == 0 || item.getMultiple().doubleValue() == 1)) { |
| | | return trade; |
| | | } |
| | | if(CollectionUtil.isNotEmpty(trade.getData())){ |
| | | if(trade != null && CollectionUtil.isNotEmpty(trade.getData())){ |
| | | List<TradeEntry> data = trade.getData(); |
| | | for (int i = 0; i < data.size(); i++) { |
| | | TradeEntry tradeEntry = data.get(i); |