Helius
2020-07-14 323700f692fdc5f52d2c523f93ea082df121522a
src/main/java/com/xcong/excoin/utils/CalculateUtil.java
@@ -33,18 +33,14 @@
        if (type == 2) {
            forcePrice = money.add(openPrice);
            if (member.getIsForce() == 1) {
                log.info("预估强评价:{},{},{}", forcePrice, tradeSetting.getForceParam(), "空");
                //预估强平价 = 预估强平价-预估强平价*系数
                forcePrice = forcePrice.subtract(forcePrice.multiply(tradeSetting.getForceParam()));
                log.info("预估强评价:{}", forcePrice);
            }
        } else {//开多
            forcePrice = openPrice.subtract(money);
            if (member.getIsForce() == 1) {
                log.info("预估强评价:{},{},{}", forcePrice, tradeSetting.getForceParam(), "多");
                //预估强平价 = 预估强平价-预估强平价*系数
                forcePrice = forcePrice.add(forcePrice.multiply(tradeSetting.getForceParam()));
                log.info("预估强评价:{}", forcePrice);
            }
        }
        if (forcePrice.compareTo(BigDecimal.ZERO) < 0) {