| | |
| | | package com.xcong.excoin.modules.contract.parameter.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | private BigDecimal canReduceMaxBond; |
| | | |
| | | @ApiModelProperty(value = "开仓时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createTime; |
| | | |
| | | public BigDecimal getOpeningPrice() { |
| | | return openingPrice.setScale(4, BigDecimal.ROUND_DOWN); |
| | | @ApiModelProperty(value = "交易类型 1-市价 2-限价") |
| | | private Integer tradeType; |
| | | |
| | | public String getOpeningPrice() { |
| | | return openingPrice.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public BigDecimal getBondAmount() { |
| | | return bondAmount.setScale(4, BigDecimal.ROUND_DOWN); |
| | | public String getBondAmount() { |
| | | return bondAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public BigDecimal getForceClosingPrice() { |
| | | return forceClosingPrice.setScale(4, BigDecimal.ROUND_DOWN); |
| | | public String getForceClosingPrice() { |
| | | return forceClosingPrice.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getProfitOrLoss() { |
| | | return profitOrLoss.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public BigDecimal getCanAddMaxBond() { |