package com.crm.rely.backend.core.entity.risk.riskimport.trade.record;

import com.crm.rely.backend.core.constant.Constants;
import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class RiskImportTradeRecordAddEntity extends BaseAddEntity {
    @NotNull(message = Constants.PARAMETER_ERROR)
    private Long order;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private Long login;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private String symbol;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private Integer cmd;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private Integer volume;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private Date openTime;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal openPrice;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal sl;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal tp;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private Date closeTime;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal closePrice;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal commission;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal profit;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private String comment;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal taxes;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal storage;
}
