Class OrderCancelingResponder

java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.FXResponder<UserTrade>
com.caplin.motif.fx.trading.orders.cancelation.responder.OrderCancelingResponder

@Deprecated public class OrderCancelingResponder extends FXResponder<UserTrade>
Deprecated.

A Responder for canceling limit orders that can send messages from the Canceling state

See Also:
  • Constructor Details

    • OrderCancelingResponder

      public OrderCancelingResponder(CancelRequest trade)
      Deprecated.
      Constructs a Responder that can respond from the Canceling state for the OrderCancel trade model.

      Please use CancelRequest.getCancelingResponder() to retrieve an instance.

      Parameters:
      trade - The object representing the trade that the client wants to cancel, which this responder can send messages for.
  • Method Details

    • sendCancelConfirm

      public void sendCancelConfirm(OrderCancelConfirmEvent event) throws com.caplin.trading.TradeException
      Deprecated.
      Sends the cancel confirm event notifying the client that the cancelation has been successfully processed by the backend trading system,
      Parameters:
      event - The confirmation event to send to the client
      Throws:
      com.caplin.trading.TradeException - If there was a problem sending the event
    • sendCancelReject

      public void sendCancelReject(OrderCancelRejectEvent event) throws com.caplin.trading.TradeException
      Deprecated.
      Sends the cancel reject message event notifying the client that the cancelation has been rejected by the backend trading system.
      Parameters:
      event - The reject event to send to the client
      Throws:
      com.caplin.trading.TradeException - If there was a problem sending the event
    • sendCancelPending

      public void sendCancelPending(OrderCancelPendingEvent event) throws com.caplin.trading.TradeException
      Deprecated.
      Sends the cancel pending message event notifying the client that the cancel request is being processed by the backend trading system.
      Parameters:
      event - The pending event to send to the client.
      Throws:
      com.caplin.trading.TradeException - If there was a problem sending the event