package com.copy.trade.entity.dto;

import lombok.Data;

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

@Data
public class EntrustDeal implements Serializable {
    private static final long serialVersionUID = -7839877503934930769L;

    /**
     * 合约委托订单号
     */
    private String contractOrderEntrustId;

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

    /**
     * 持仓方向(BUY多 SELL空)
     */
    private String direction;

    /**
     * 仓位ID
     */
    private Long positionId;

    /**
     * 开仓价格
     */
    private BigDecimal openPrice;

    /**
     * 持仓张数
     */
    private BigDecimal volume;

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

    /**
     * 开仓时间
     */
    private Long openTime;


}
