package com.crm.rely.backend.core.entity.risk.symbol.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;

@Data
public class RiskSymbolRecordAddEntity extends BaseAddEntity {
    @NotNull(message = Constants.PARAMETER_ERROR)
    private String symbol;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal swapLong;
    @NotNull(message = Constants.PARAMETER_ERROR)
    private BigDecimal swapShort;

    @NotNull
    private Integer source;

    @NotNull
    private Integer coefficient;
}
