public static enum IAccount.AccountState extends Enum<IAccount.AccountState>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static IAccount.AccountState |
valueOf(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.
|
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
public static IAccount.AccountState[] values()
for (IAccount.AccountState c : IAccount.AccountState.values()) System.out.println(c);
public static IAccount.AccountState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<IAccount.AccountState>
Copyright © 2016. All rights reserved.