| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.web3j.abi.datatypes.Int; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | |
| | | |
| | | @ApiModelProperty("订单ID") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("仓位类型 1-逐仓 2-全仓") |
| | | private int positionType; |
| | | |
| | | @ApiModelProperty("杠杆倍率") |
| | | private int leverRatio; |
| | | |
| | | @ApiModelProperty("订单类型 1开多,2开空,3平多,4平空") |
| | | private int orderType; |
| | |
| | | @ApiModelProperty("张数") |
| | | private int symbolCnt; |
| | | |
| | | @ApiModelProperty("可平张数") |
| | | private int symbolCntSale; |
| | | |
| | | @ApiModelProperty("已实现盈亏") |
| | | private BigDecimal rewardAmount; |
| | | |
| | |
| | | @ApiModelProperty("平仓时间") |
| | | private Date closingTime; |
| | | |
| | | @ApiModelProperty("平仓价格") |
| | | private BigDecimal closingPrice; |
| | | |
| | | @ApiModelProperty("强平价") |
| | | private BigDecimal forceClosingPrice; |
| | | |
| | | @ApiModelProperty(value = "交易类型 1-市价 2-限价") |
| | | private Integer tradeType; |
| | | |
| | | @ApiModelProperty(value = "合约类型 1-普通 2-跟单") |
| | | private Integer contractType; |
| | | |
| | | public String getOpeningFeeAmount() { |
| | | return openingFeeAmount == null ? "" : openingFeeAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | |
| | | public String getClosingFeeAmount() { |
| | | return closingFeeAmount == null ? "" : closingFeeAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getBondAmount() { |
| | | return bondAmount == null ? "" : bondAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | |
| | | public String getRewardAmount() { |
| | | return rewardAmount == null ? "" : rewardAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |
| | | } |