package com.copy.trade.entity.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 跟单委托(follow-entrust消息实体类)
 */
@Data
public class FollowEntrust implements Serializable {
    private static final long serialVersionUID = 6708527868840122733L;

    /**
     * 跟单订单号(跟单系统生成)
     */
    private String copiedOrderNo;

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

    /**
     * 合约交易对ID
     */
    private Long contractId;

    /**
     * 交易对
     */
    private String symbol;

    /**
     * 委托类型(MARKET_PRICE限价 LIMIT_PRICE市价 SPOT_LIMIT计划委托)
     */
    private Integer type;

    /**
     * 委托方向(BUY做多 SELL做空)
     */
    private Integer direction;

    /**
     * 委托价格
     */
    private BigDecimal entrustPrice;

    /**
     * 杠杆倍数
     */
    private Integer leverage;

    /**
     * 止盈价
     */
    private BigDecimal profitPrice;

    /**
     * 止损价
     */
    private BigDecimal lossPrice;

    /**
     * 委托保证金
     */
    private BigDecimal principalAmount;

    /**
     * 计划委托触发价
     */
    private BigDecimal triggerPrice;


}
