exchange.apexpro.connector.model.enums.OrderStatus 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;
public enum OrderStatus {
PENDING("PENDING"),
OPEN("OPEN"),
FILLED("FILLED"),
CANCELING("CANCELING"),
CANCELED("CANCELED"),
UNTRIGGERED("UNTRIGGERED");
private final String code;
OrderStatus(String code) {
this.code = code;
}
@Override
public String toString() {
return code;
}
private static final EnumLookup lookup = new EnumLookup<>(OrderStatus.class);
public static OrderStatus lookup(String name) {
return lookup.lookup(name);
}
}