| | |
| | | tradeEntry_map.put("direction", direction); |
| | | tradeEntry_map.put("ts", tradeEntry.getTs()); |
| | | tradeEntry_map.put("current_time", tradeEntry.getCurrent_time()); |
| | | |
| | | double addPriceValue = getRandomValue((int)tradeEntry.getPrice().doubleValue()); |
| | | |
| | | double addPriceValue; |
| | | if ((int)tradeEntry.getPrice().doubleValue() == 0) { |
| | | addPriceValue = 0; |
| | | } else { |
| | | addPriceValue = getRandomValue((int)tradeEntry.getPrice().doubleValue()); |
| | | } |
| | | double addAmountValue = getRandomValue((int)tradeEntry.getAmount().doubleValue()); |
| | | |
| | | double price = Arith.add(tradeEntry.getPrice(), addPriceValue); |