All Downloads are FREE. Search and download functionalities are using the official Maven repository.

exchange.apexpro.connector.model.enums.TradeDirection Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package exchange.apexpro.connector.model.enums;

import exchange.apexpro.connector.impl.utils.EnumLookup;

/**
 * buy, sell.
 */
public enum TradeDirection {
  BUY("buy"),
  SELL("sell");

  private final String code;

  TradeDirection(String side) {
    this.code = side;
  }

  @Override
  public String toString() {
    return code;
  }

  private static final EnumLookup lookup = new EnumLookup<>(TradeDirection.class);

  public static TradeDirection lookup(String name) {
    return lookup.lookup(name);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy