| | |
| | | package com.xcong.excoin.modules.contract.parameter.vo; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | @ApiModelProperty("开仓均价") |
| | | private BigDecimal openingPrice; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @JsonFormat(pattern = "MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty("开仓价") |
| | | private Date openingTime; |
| | | |
| | |
| | | @ApiModelProperty("平仓手续费") |
| | | private BigDecimal closingFeeAmount; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @JsonFormat(pattern = "MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty("平仓时间") |
| | | private Date closingTime; |
| | | |
| | |
| | | @ApiModelProperty(value = "合约类型 1-普通 2-跟单") |
| | | private Integer contractType; |
| | | |
| | | @ApiModelProperty(value = "订单编号") |
| | | private String orderNo; |
| | | |
| | | public String getOrderNo() { |
| | | return StrUtil.isNotBlank(orderNo) ? orderNo.substring(orderNo.length() - 6) : ""; |
| | | } |
| | | |
| | | public String getOpeningFeeAmount() { |
| | | return openingFeeAmount == null ? "" : openingFeeAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); |
| | | } |