| | |
| | | userPositionVO.setAllProfitAndLoseStr(positionProfitVO.getAllProfitAndLoseStr()); |
| | | userPositionVO.setOrderTotalPrice(positionProfitVO.getOrderTotalPrice()); |
| | | |
| | | if (position.getOrderLever() != null && position.getOrderLever() > 0 |
| | | && position.getBuyOrderPrice() != null && position.getOrderNum() != null) { |
| | | userPositionVO.setBuyAmtAutual( |
| | | position.getBuyOrderPrice() |
| | | .multiply(new BigDecimal(position.getOrderNum())) |
| | | .divide(new BigDecimal(position.getOrderLever()), 2, RoundingMode.HALF_UP)); |
| | | } |
| | | |
| | | return userPositionVO; |
| | | } |