zyy
2025-11-11 df42e224ff59c45d88ad15913d27d2b66a33e6c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.yami.trading.huobi.websocket.constant.enums;
 
import lombok.AllArgsConstructor;
import lombok.Getter;
 
 
@AllArgsConstructor
@Getter
public enum StopOrderOperatorEnum {
  /**
   * GTE,greater than and equal (>=) ,LTE  less than and equal (<=)
   */
  GTE("gte","greater than and equal (>=)"),
  LTE("lte","less than and equal (<=)");
 
  private String operator;
 
  private String desc;
 
  public static StopOrderOperatorEnum find(String operator) {
    for (StopOrderOperatorEnum op : StopOrderOperatorEnum.values()) {
      if (op.getOperator().equals(operator)) {
        return op;
      }
    }
    return null;
  }
 
 
}