com.dukascopy.api
Enum IOrder.State

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

public static enum IOrder.State
extends Enum<IOrder.State>

Indicates state of the order


Enum Constant Summary
CANCELED
          Set after order was cancelled
CLOSED
          Set after order was closed
CREATED
          Set right after order submission and before order acceptance by the server
FILLED
          Set after order was fully or partially filled.
OPENED
          Set after order submission for conditional orders.
 
Method Summary
static IOrder.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IOrder.State[] 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

CREATED

public static final IOrder.State CREATED
Set right after order submission and before order acceptance by the server


OPENED

public static final IOrder.State OPENED
Set after order submission for conditional orders. Simple BUY or SELL orders can have this state before filling or can get FILLED state right after CREATED state


FILLED

public static final IOrder.State FILLED
Set after order was fully or partially filled. Partially filled orders have different values returned from getRequestedAmount and getAmount methods


CLOSED

public static final IOrder.State CLOSED
Set after order was closed


CANCELED

public static final IOrder.State CANCELED
Set after order was cancelled

Method Detail

values

public static IOrder.State[] 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 (IOrder.State c : IOrder.State.values())
    System.out.println(c);

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

valueOf

public static IOrder.State valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.