package com.copy.trade.entity.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;
@ApiModel
@Data
public class FollowForm {

    @ApiModelProperty("交易员ID")
    @NotNull(message = "chk.follow.trader.not.null")
    private Long traderId;

    @ApiModelProperty("跟随交易对")
    @NotNull(message = "chk.follow.symbol.not.null")
    private List<String> symbols;

    @ApiModelProperty(name = "杠杆倍数(不传跟随交易员)")
    private Integer leverage;

    @ApiModelProperty(name = "跟单方式(10固定比例 20固定资金)",allowableValues = "10,20")
    //@NotNull(message = "chk.follow.tradingMode.not.null")
    private Integer tradingMode;

    @ApiModelProperty("跟单金额/比例")
    //@NotNull(message = "chk.follow.tradingAmount.not.null")
    private BigDecimal tradingAmount;

    @ApiModelProperty("止损比例")
    private BigDecimal stopLossPercentage;

    @ApiModelProperty("止盈比例")
    private BigDecimal stopProfitPercentage;

   @ApiModelProperty("最大跟随金额")
    private BigDecimal maxCopiedAmount;

}
