KKSU
2024-09-30 36be00e0f3cbe0d559c646fd2977e6e3a74aa6f9
src/main/java/com/xcong/excoin/modules/contract/parameter/vo/HoldOrderDetailVo.java
@@ -23,11 +23,17 @@
    @ApiModelProperty("交易类型 1-市价2-限价")
    private int tradeType;
    @ApiModelProperty("仓位类型 1-逐仓 2-全仓")
    private int positionType;
    @ApiModelProperty("币种")
    private String symbol;
    @ApiModelProperty("张数")
    private int symbolCnt;
    @ApiModelProperty(value = "可平张数")
    private int symbolCntSale;
    @ApiModelProperty("规格")
    private BigDecimal symbolSku;
@@ -82,4 +88,8 @@
    public String getForceClosingPrice() {
        return forceClosingPrice == null ? "" : forceClosingPrice.setScale(4, BigDecimal.ROUND_DOWN).toPlainString();
    }
    public void setOpeningFeeAmount(BigDecimal openingFeeAmount, BigDecimal feeSpread) {
        this.openingFeeAmount = openingFeeAmount == null ? openingFeeAmount : openingFeeAmount.multiply(feeSpread).setScale(8, BigDecimal.ROUND_DOWN);
    }
}