| | |
| | | } |
| | | |
| | | public String getProfitOrLoss() { |
| | | return profitOrLoss.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | return profitOrLoss.setScale(2, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public BigDecimal getCanAddMaxBond() { |
| | |
| | | } |
| | | |
| | | result.put("hold", resultList); |
| | | result.put("totalProfitOrLoss", totalProfitOrLoss.setScale(4, BigDecimal.ROUND_DOWN).toPlainString()); |
| | | result.put("totalProfitOrLoss", totalProfitOrLoss.setScale(2, BigDecimal.ROUND_DOWN).toPlainString()); |
| | | return Result.ok(result); |
| | | } |
| | | return Result.ok("success"); |