exchange.apexpro.connector.model.enums.TradeDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apexpro-connector-java Show documentation
Show all versions of apexpro-connector-java Show documentation
A lightweight library to ApeX-Protocol
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);
}
}