com.dukascopy.api
Enum IMessage.Type

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

public static enum IMessage.Type
extends Enum<IMessage.Type>

Type of the message


Enum Constant Summary
NEWS
          Market news
NOTIFICATION
          Notifications from server or events in the system like disconnect
ORDER_CHANGED_OK
          Sent after successful orders change
ORDER_CHANGED_REJECTED
          Sent if orders change was rejected by the server
ORDER_CLOSE_OK
          Sent after successful order closing
ORDER_CLOSE_REJECTED
          Sent if order close request was rejected
ORDER_FILL_OK
          Sent after successful order filling
ORDER_FILL_REJECTED
          Sent if server rejected order fill execution.
ORDER_SUBMIT_OK
          Sent after order submission was accepted by the server
ORDER_SUBMIT_REJECTED
          Sent when order was rejected
ORDERS_MERGE_OK
          Sent after successful orders merge
ORDERS_MERGE_REJECTED
          Sent if orders merge was rejected by the server
 
Method Summary
static IMessage.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IMessage.Type[] 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

NEWS

public static final IMessage.Type NEWS
Market news


NOTIFICATION

public static final IMessage.Type NOTIFICATION
Notifications from server or events in the system like disconnect


ORDER_SUBMIT_REJECTED

public static final IMessage.Type ORDER_SUBMIT_REJECTED
Sent when order was rejected


ORDER_SUBMIT_OK

public static final IMessage.Type ORDER_SUBMIT_OK
Sent after order submission was accepted by the server


ORDER_FILL_REJECTED

public static final IMessage.Type ORDER_FILL_REJECTED
Sent if server rejected order fill execution. One of the possible reasons is not enough margin


ORDER_CLOSE_REJECTED

public static final IMessage.Type ORDER_CLOSE_REJECTED
Sent if order close request was rejected


ORDER_CLOSE_OK

public static final IMessage.Type ORDER_CLOSE_OK
Sent after successful order closing


ORDER_FILL_OK

public static final IMessage.Type ORDER_FILL_OK
Sent after successful order filling


ORDERS_MERGE_OK

public static final IMessage.Type ORDERS_MERGE_OK
Sent after successful orders merge


ORDERS_MERGE_REJECTED

public static final IMessage.Type ORDERS_MERGE_REJECTED
Sent if orders merge was rejected by the server


ORDER_CHANGED_OK

public static final IMessage.Type ORDER_CHANGED_OK
Sent after successful orders change


ORDER_CHANGED_REJECTED

public static final IMessage.Type ORDER_CHANGED_REJECTED
Sent if orders change was rejected by the server

Method Detail

values

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

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

valueOf

public static IMessage.Type 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.