
org.knowm.xchange.binance.dto.trade.TimeInForce Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-binance Show documentation
Show all versions of xchange-binance Show documentation
Development fork. Not for general use.
The newest version!
package org.knowm.xchange.binance.dto.trade;
import com.fasterxml.jackson.annotation.JsonCreator;
import org.knowm.xchange.dto.Order.IOrderFlags;
public enum TimeInForce implements IOrderFlags {
GTC,
FOK,
IOC;
@JsonCreator
public static TimeInForce getTimeInForce(String s) {
try {
return TimeInForce.valueOf(s);
} catch (Exception e) {
throw new RuntimeException("Unknown ordtime in force " + s + ".");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy