public class StrategyType extends Object
Modifier and Type | Field and Description |
---|---|
static StrategyType |
IF_DONE
Represents an If Done Then strategy which contains a parent order and one
child order.
|
static String |
IF_DONE_NAME |
static StrategyType |
IF_DONE_OCO
Represents an If Done Then One Cancels the Other strategy which contains
a parent order and an OCO child strategy.
|
static String |
IF_DONE_OCO_NAME |
static StrategyType |
IF_TIMEOUT
Represents an If Timeout strategy which contains a parent order and one
child order.
|
static String |
IF_TIMEOUT_NAME |
static StrategyType |
OCO
Represents a One Cancels the Other strategy which contains a take profit
and stop loss order.
|
static String |
OCO_NAME |
static StrategyType |
SINGLE
Represents a single order strategy that does not contain any contingent
orders.
|
static String |
SINGLE_NAME |
Constructor and Description |
---|
StrategyType(String name)
Constructs the StrategyType with name
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns a printable name for the strategy type.
|
static StrategyType |
getValue(String value)
Returns the StrategyType corresponding to the passed in StrategyType
|
int |
hashCode() |
String |
toString() |
static Set<StrategyType> |
values()
Returns a set containing the default StrategyTypes
|
public static final String SINGLE_NAME
public static final String IF_DONE_OCO_NAME
public static final String OCO_NAME
public static final String IF_DONE_NAME
public static final String IF_TIMEOUT_NAME
public static final StrategyType SINGLE
public static final StrategyType OCO
public static final StrategyType IF_DONE
public static final StrategyType IF_DONE_OCO
public static final StrategyType IF_TIMEOUT
public StrategyType(String name)
name
- The name of the StrategyTypepublic String getName()
public static StrategyType getValue(String value)
value
- The string value of the StrategyTypepublic static Set<StrategyType> values()
Copyright © 2015 Caplin Systems.