| | |
| | | private int closingType; |
| | | |
| | | @ApiModelProperty("止损价") |
| | | private BigDecimal stopLosePrice; |
| | | private BigDecimal stopLossPrice; |
| | | |
| | | @ApiModelProperty("止盈价") |
| | | private BigDecimal stopProfitPrice; |
| | |
| | | @ApiModelProperty("持仓费") |
| | | private BigDecimal holdAmount; |
| | | |
| | | @ApiModelProperty("杠杆") |
| | | private int leverRatio; |
| | | |
| | | public String getClosingPrice() { |
| | | return closingPrice == null ? "" : closingPrice.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getClosingFeeAmount() { |
| | | return closingFeeAmount == null ? "" : closingFeeAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getRewardAmount() { |
| | | return rewardAmount == null ? "" : rewardAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getOpeningPrice() { |
| | | return openingPrice == null ? "" : openingPrice.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getOpeningFeeAmount() { |
| | | return openingFeeAmount == null ? "" : openingFeeAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getBondAmount() { |
| | | return bondAmount == null ? "" : bondAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getHoldAmount() { |
| | | return holdAmount == null ? "" : holdAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public void setClosingFeeAmount(BigDecimal closingFeeAmount, BigDecimal feeSpread) { |
| | | this.closingFeeAmount = closingFeeAmount == null ? closingFeeAmount : closingFeeAmount.multiply(feeSpread).setScale(8, BigDecimal.ROUND_DOWN); |
| | | } |
| | | |
| | | public void setOpeningFeeAmount(BigDecimal openingFeeAmount, BigDecimal feeSpread) { |
| | | this.openingFeeAmount = openingFeeAmount == null ? openingFeeAmount : openingFeeAmount.multiply(feeSpread).setScale(8, BigDecimal.ROUND_DOWN); |
| | | } |
| | | } |