Class CancelRequest
- java.lang.Object
-
- com.caplin.motif.UserTrade
-
- com.caplin.motif.fx.trading.orders.cancelation.CancelRequest
-
@Deprecated public class CancelRequest extends UserTrade
Deprecated.An instance of this object represents a request from the client to cancel the state of an existing order.
-
-
Constructor Summary
Constructors Constructor Description CancelRequest(com.caplin.trading.Trade trade, java.util.concurrent.ScheduledExecutorService executorService, java.lang.String parentOrderID, java.lang.String orderID)
Deprecated.Constructs the CancelRequest with a trade object from the underlying trading com.caplin.motif.datasource that contains the fields and the state model representing the clients request to cancel an already existing order.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OrderCancelingResponder
getCancelingResponder()
Deprecated.Returns the Responder for responding to events from the Canceling stateOrderCancelSentResponder
getCancelSentResponder()
Deprecated.Returns the Responder for responding to events from the CancelSent state.java.lang.String
getOrderID()
Deprecated.The ID of the order that is to be canceled, that the backend trading system understands.java.lang.String
getParentOrderID()
Deprecated.ParentOrderID is optional and might be not defined-
Methods inherited from class com.caplin.motif.UserTrade
getBackingTrade, getExecutorService, getRequestID, getUsername, toString
-
-
-
-
Constructor Detail
-
CancelRequest
public CancelRequest(com.caplin.trading.Trade trade, java.util.concurrent.ScheduledExecutorService executorService, java.lang.String parentOrderID, java.lang.String orderID)
Deprecated.Constructs the CancelRequest with a trade object from the underlying trading com.caplin.motif.datasource that contains the fields and the state model representing the clients request to cancel an already existing order.
Note: As a user of the FXIntegrationAPI one is not expected to create this object, but to be passed these in listeners. See
OrderCancelationListener
- Parameters:
trade
- The underlying trade from the trading com.caplin.motif.datasource library.parentOrderID
- The ID of the parent order if part of a multi-leg order.orderID
- The ID of the order that is to be canceled.
-
-
Method Detail
-
getCancelSentResponder
public OrderCancelSentResponder getCancelSentResponder()
Deprecated.Returns the Responder for responding to events from the CancelSent state. When the backend receives a request to cancel an order, the Responder should be used to send an acknowledgement of this and transition the state to Canceling.- Returns:
- The responder for the CancelSent state
-
getCancelingResponder
public OrderCancelingResponder getCancelingResponder()
Deprecated.Returns the Responder for responding to events from the Canceling state- Returns:
- The responder for the Canceling state
-
getParentOrderID
public java.lang.String getParentOrderID()
Deprecated.ParentOrderID is optional and might be not defined- Returns:
- parentOrderId or null (if parentOrderId is not defined)
-
getOrderID
public java.lang.String getOrderID()
Deprecated.The ID of the order that is to be canceled, that the backend trading system understands.- Returns:
- The order ID
-
-