package com.xcong.excoin.modules.coin.parameter.dto; import java.math.BigDecimal; import javax.validation.constraints.NotNull; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data @ApiModel(value = "SubmitSalesWalletCoinOrderDto", description = "提交买卖订单参数接收类") public class SubmitSalesWalletCoinOrderDto { @NotNull(message = "币种不能为空") @ApiModelProperty(value = "币种", example = "BTC") private String symbol; @NotNull(message = "交易类型不能为空") @ApiModelProperty(value = "买入卖出类型买入:1,卖出:2", example = "1") private Integer type; @NotNull(message = "交易方式不能为空") @ApiModelProperty(value = "市价:1,限价:2", example = "1") private Integer tradeType; @NotNull(message = "数量不能为空") @ApiModelProperty(value = "数量", example = "100") private BigDecimal amount; @NotNull(message = "建仓价不能为空") @ApiModelProperty(value = "建仓价", example = "20.0000") private BigDecimal price; }