public class CancelRequest extends MotifTrade
An instance of this object represents a request from the client to cancel the state of an existing order.
trade
Constructor and Description |
---|
CancelRequest(com.caplin.trading.Trade trade,
String parentOrderID,
String orderID)
Constructs the CancelRequest with a trade object from the underying
trading datasource that contains the fields and the state model representing
the clients request to cancel an already existing order.
|
Modifier and Type | Method and Description |
---|---|
OrderCancelingResponder |
getCancelingResponder()
Returns the Responder for responding to events from the Canceling state
|
OrderCancelSentResponder |
getCancelSentResponder()
Returns the Responder for responding to events from the CancelSent state.
|
String |
getOrderID()
The ID of the order that is to be canceled, that the backend trading
system understands.
|
String |
getParentOrderID()
ParentOrderID is optional and might be not defined
|
createEvent, getCurrentState, getField, getRequestID, getTradeChannelSubject, getUsername, sendEvent, toString
public CancelRequest(com.caplin.trading.Trade trade, String parentOrderID, String orderID)
Constructs the CancelRequest with a trade object from the underying trading 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
trade
- The underlying trade from the trading 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.public OrderCancelSentResponder getCancelSentResponder()
public OrderCancelingResponder getCancelingResponder()
public String getParentOrderID()
public String getOrderID()
Copyright © 2015 Caplin Systems.