|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<IEngine.OrderCommand>
com.dukascopy.api.IEngine.OrderCommand
public static enum IEngine.OrderCommand
Specifies type of the order
Enum Constant Summary | |
---|---|
BUY
Buy by current market price. |
|
BUYLIMIT
Buy when ask price is <= specified price |
|
BUYLIMIT_BYBID
Buy when bid price is <= specified price |
|
BUYSTOP
Buy when ask price is >= specified price |
|
BUYSTOP_BYBID
Buy when bid price is >= specified price |
|
PLACE_BID
Place bid at specified price |
|
PLACE_OFFER
Place offer at specified price |
|
SELL
Sell by current market price. |
|
SELLLIMIT
Sell when bid price is >= specified price |
|
SELLLIMIT_BYASK
Sell when ask price is >= specified price |
|
SELLSTOP
Sell when bid price is <= specified price |
|
SELLSTOP_BYASK
Sell when ask price is <= specified price |
Method Summary | |
---|---|
boolean |
isLong()
Returns true if order is LONG and false if order is SHORT |
boolean |
isShort()
Returns true if order is SHORT and false if order is LONG |
static IEngine.OrderCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IEngine.OrderCommand[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IEngine.OrderCommand BUY
public static final IEngine.OrderCommand SELL
public static final IEngine.OrderCommand BUYLIMIT
public static final IEngine.OrderCommand SELLLIMIT
public static final IEngine.OrderCommand BUYSTOP
public static final IEngine.OrderCommand SELLSTOP
public static final IEngine.OrderCommand BUYLIMIT_BYBID
public static final IEngine.OrderCommand SELLLIMIT_BYASK
public static final IEngine.OrderCommand BUYSTOP_BYBID
public static final IEngine.OrderCommand SELLSTOP_BYASK
public static final IEngine.OrderCommand PLACE_BID
public static final IEngine.OrderCommand PLACE_OFFER
Method Detail |
---|
public static IEngine.OrderCommand[] values()
for (IEngine.OrderCommand c : IEngine.OrderCommand.values()) System.out.println(c);
public static IEngine.OrderCommand valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isLong()
public boolean isShort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |