com.teraspaces.qwfix.ordermanager
Interface FIXSessionOrderManagerBuySideListener


public interface FIXSessionOrderManagerBuySideListener

The listener interface for receiving BuySide events. The class that is interested in processing a FIXSessionOrderManagerBuySide event implements this interface, and the object created with that class is registered with a component using the component's addBuySideListener method. When the FIXSessionOrderManagerBuySide event occurs, that object's appropriate method is invoked.

See Also:
FIXSessionOrderManager.addBuySideListener(FIXSessionOrderManagerBuySideListener), FIXSessionOrderManager.removeBuySideListener(FIXSessionOrderManagerBuySideListener)

Method Summary
 void newOrderSending(FIXMessage newOrderMessage)
          Occurs when the current session is sending a new order.
 void orderCancelRequestSending(FIXOrder order, FIXMessage requestMessage)
          Occurs when an Order Cancel Request message is going to be added to a FIXOrder.
 void orderReplaceRequestSending(FIXOrder order, FIXMessage requestMessage)
          Occurs when an "Order Cancel/Replace Request" message is going to be added to a FIXOrder.
 

Method Detail

newOrderSending

void newOrderSending(FIXMessage newOrderMessage)
Occurs when the current session is sending a new order. It is triggered on a buy side session only.

The event is only triggered when the status is NORMAL.

This event gives a buy side application a chance to block an order before it's sent by throwing out a FIXOrderManagerOrderRejectException.

This event also gives a buy side application a chance to modify the message (adding, removing or modifying fields) before it is sent out.

This event is triggered before the FIXSessionOrderManagerCommonListener.orderAdded(FIXOrder, com.teraspaces.qwfix.FIXEngineMessageHandlerStatus) event. If this event throws an exception, the order will not be added at all.

Parameters:
newOrderMessage - the new order message

orderCancelRequestSending

void orderCancelRequestSending(FIXOrder order,
                               FIXMessage requestMessage)
Occurs when an Order Cancel Request message is going to be added to a FIXOrder. It is triggered on a buy side session only.

The event is only triggered when the status is NORMAL.

This event gives a buy side application a chance to block an order before it's sent by throwing out a FIXOrderManagerCancelRejectException.

This event also gives a buy side application a chance to modify the message (adding, removing or modifying fields) before it is sent out.

This event is triggered before the FIXSessionOrderManagerCommonListener.orderCancelRequestAdded(FIXOrder, FIXMessage, com.teraspaces.qwfix.FIXEngineMessageHandlerStatus) event. If this event throws an exception, the order cancel request will not be added at all.

Parameters:
order - the order
requestMessage - the request message

orderReplaceRequestSending

void orderReplaceRequestSending(FIXOrder order,
                                FIXMessage requestMessage)
Occurs when an "Order Cancel/Replace Request" message is going to be added to a FIXOrder. It is triggered on a buy side session only.

The event is only triggered when the status is NORMAL.

This event gives a buy side application a chance to block an order before it's sent by throwing out a FIXOrderManagerCancelRejectException.

This event also gives a buy side application a chance to modify the message (adding, removing or modifying fields) before it is sent out.

This event is triggered before the FIXSessionOrderManagerCommonListener.orderCancelRequestAdded(FIXOrder, FIXMessage, com.teraspaces.qwfix.FIXEngineMessageHandlerStatus) event. If this event throws an exception, the order cancel request will not be added at all.

Parameters:
order - the order
requestMessage - the request message