public enum TimeInForce extends java.lang.Enum<TimeInForce> implements RobinhoodEnum
Enum Constant and Description |
---|
FILL_OR_KILL |
GOOD_FOR_DAY |
GOOD_UNTIL_CANCELED |
IMMEDIATE_OR_CANCEL |
ON_MARKET_OPEN |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Get the Robinhood API's string that corresponds to this enum
|
static TimeInForce |
parse(java.lang.String s)
Parse a
TimeInForce enum from a Robinhood API formatted string |
java.lang.String |
toString() |
static TimeInForce |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeInForce[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
println
public static final TimeInForce ON_MARKET_OPEN
public static final TimeInForce IMMEDIATE_OR_CANCEL
public static final TimeInForce FILL_OR_KILL
public static final TimeInForce GOOD_FOR_DAY
public static final TimeInForce GOOD_UNTIL_CANCELED
public static TimeInForce[] values()
for (TimeInForce c : TimeInForce.values()) System.out.println(c);
public static TimeInForce valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TimeInForce parse(java.lang.String s)
TimeInForce
enum from a Robinhood API formatted strings
- The string to parse fromTimeInForce
parsed or nullpublic java.lang.String toString()
toString
in class java.lang.Enum<TimeInForce>
public java.lang.String getValue()
RobinhoodEnum
getValue
in interface RobinhoodEnum