package com.bizzan.bitrade.entity;

/**
 * 体验金券平仓原因
 */
public enum ExperienceGiftCloseReason {

    USER_MANUAL(0, "用户手动平仓"),
    EXPIRED(1, "到期强平"),
    BLASTED(2, "爆仓"),
    PROFIT_LIMIT(3, "盈利达上限系统自动平仓"),
    ADMIN_RECYCLE(4, "管理员手动回收"),

    /**
     * 用户止盈触发：用户为体验金仓位设置的止盈价被触发
     */
    STOP_PROFIT(5, "用户止盈触发"),

    /**
     * 用户止损触发：用户为体验金仓位设置的止损价被触发
     */
    STOP_LOSS(6, "用户止损触发");

    ExperienceGiftCloseReason(int code, String description) {
        this.code = code;
        this.description = description;
    }

    private final int code;
    private final String description;

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
