| | |
| | | if (profitRatio.compareTo(val) < 0 || profitRatioMax.compareTo(val) < 0) { |
| | | scale = 1; |
| | | } |
| | | String profitRatioFront = profitRatio.setScale(scale, RoundingMode.HALF_UP) + "-" + profitRatioMax.setScale(scale, RoundingMode.HALF_UP); |
| | | String profitRatioFront = profitRatio.setScale(scale, RoundingMode.DOWN) + "-" + profitRatioMax.setScale(scale, RoundingMode.DOWN); |
| | | futuresPara.setProfitRatioFront(profitRatioFront); |
| | | BigDecimal unitMaxAmount = futuresPara.getUnitMaxAmount().compareTo(BigDecimal.ZERO)<= 0?null: futuresPara.getUnitMaxAmount(); |
| | | futuresPara.setBuyMin(new BigDecimal(futuresPara.getUnitAmount())); |