java.lang.Objectjava.lang.Enum<IAccount.AccountState>
com.dukascopy.api.IAccount.AccountState
public static enum IAccount.AccountState
Account state: OK, MARGIN_CLOSING, MARGIN_CALL, OK_NO_MARGIN_CALL, DISABLED, BLOCKED.
| Enum Constant Summary | |
|---|---|
BLOCKED
Permanent status 4 - Account is blocked. |
|
DISABLED
Permanent status 2 - Margin call. |
|
MARGIN_CALL
Temporary status - Margin call status. |
|
MARGIN_CLOSING
Temporary status - Margin call triggered, closing positions by force. |
|
OK
Permanent status 1 - Account OK, trading is allowed. |
|
OK_NO_MARGIN_CALL
Permanent status 3 - Account acting as usually, but margin call doesn't close positions. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
|
static IAccount.AccountState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static IAccount.AccountState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IAccount.AccountState OK
public static final IAccount.AccountState MARGIN_CLOSING
public static final IAccount.AccountState MARGIN_CALL
public static final IAccount.AccountState OK_NO_MARGIN_CALL
public static final IAccount.AccountState DISABLED
public static final IAccount.AccountState BLOCKED
| Method Detail |
|---|
public static IAccount.AccountState[] values()
for (IAccount.AccountState c : IAccount.AccountState.values()) System.out.println(c);
public static IAccount.AccountState 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 name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<IAccount.AccountState>