com.dukascopy.api
Enum IAccount.AccountState

java.lang.Object
  extended by java.lang.Enum<IAccount.AccountState>
      extended by com.dukascopy.api.IAccount.AccountState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IAccount.AccountState>
Enclosing interface:
IAccount

public static enum IAccount.AccountState
extends java.lang.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

OK

public static final IAccount.AccountState OK
Permanent status 1 - Account OK, trading is allowed.


MARGIN_CLOSING

public static final IAccount.AccountState MARGIN_CLOSING
Temporary status - Margin call triggered, closing positions by force. Entering new orders is prohibited.


MARGIN_CALL

public static final IAccount.AccountState MARGIN_CALL
Temporary status - Margin call status. Entering new orders is prohibited.


OK_NO_MARGIN_CALL

public static final IAccount.AccountState OK_NO_MARGIN_CALL
Permanent status 3 - Account acting as usually, but margin call doesn't close positions.


DISABLED

public static final IAccount.AccountState DISABLED
Permanent status 2 - Margin call. Entering new orders is prohibited.


BLOCKED

public static final IAccount.AccountState BLOCKED
Permanent status 4 - Account is blocked. Entering new orders is prohibited.

Method Detail

values

public static IAccount.AccountState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IAccount.AccountState c : IAccount.AccountState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IAccount.AccountState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<IAccount.AccountState>