package com.copy.trade.entity.po;

import java.math.BigDecimal;

import com.copy.trade.entity.base.BasePo;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 跟单风险控制表
 * </p>
 *
 * @author wz
 * @since 2022-12-03
 */
@Data
public class RiskControl extends BasePo {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long customerId;

    /**
     * 跟随ID
     */
    private Long followId;

    /**
     * 杠杆倍数(0代表跟随交易员)
     */
    private Integer leverage;

    /**
     * 跟单金额
     */
    private BigDecimal tradingAmount;

    /**
     * 跟单方式(10固定比例 20固定资金)
     */
    private Integer tradingMode;

    /**
     * 止损比例
     */
    private BigDecimal stopLossPercentage;

    /**
     * 止赢比例
     */
    private BigDecimal stopProfitPercentage;

    /**
     * 最大跟随金额
     */
    private BigDecimal maxCopiedAmount;


}
