package com.crm.rely.backend.core.entity.risk.close.trade.login;

import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

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

@Data
public class RiskCloseTradeLoginUpdateEntity extends BaseUpdateEntity {

    @NotNull
    @NotBlank
    private String platform;

    @NotNull
    private Long login;

    private BigDecimal ratio;

    @NotNull
    private BigDecimal amount;
}
