Class IfDoneOCOStrategy
java.lang.Object
com.caplin.motif.UserTrade
com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy
com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneOCOStrategy
- All Implemented Interfaces:
OrderStrategy
Deprecated.
Represents the contingent order strategy If Done then One Cancels the Other.
The structure of this order is defined as:- Parent Order
- Take Profit
- Stop Loss
-
Field Summary
Fields inherited from class com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy
orders
-
Constructor Summary
ConstructorDescriptionIfDoneOCOStrategy
(com.caplin.trading.Trade trade, String tradingSubProtocol, String currencyPair, String user, String toboUser, String remarks, Set<AlertType> alertTypes, String requestId, String account, List<Order> orders, ActivationDate activationDate, ExpirationDate expirationDate) Deprecated.Creates a IfDoneOCOStrategy based on the parameters provided. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the parent order, which can be of any type, except CALLDeprecated.Returns the stop loss child order from within the OCO.Deprecated.Returns the take profit child order from within the OCO.Methods inherited from class com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy
getAccount, getActivationDate, getAlertTypes, getChildOrders, getCurrencyPair, getExpirationDate, getPendingAcceptResponder, getQueuedResponder, getRemarks, getSpotRateDPS, getSubmittedResponder, getTOBOUser, getTradingSubProtocol, getType, toString
Methods inherited from class com.caplin.motif.UserTrade
getBackingTrade, getExecutorService, getRequestID, getUsername
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.caplin.motif.fx.trading.orders.submission.OrderStrategy
getRequestID, getUsername
-
Constructor Details
-
IfDoneOCOStrategy
public IfDoneOCOStrategy(com.caplin.trading.Trade trade, String tradingSubProtocol, String currencyPair, String user, String toboUser, String remarks, Set<AlertType> alertTypes, String requestId, String account, List<Order> orders, ActivationDate activationDate, ExpirationDate expirationDate) Deprecated.Creates a IfDoneOCOStrategy based on the parameters provided.- Parameters:
trade
- The Trade object from the underlying Trading DataSource library. This contains the field map which the SingleStrategy is built from.tradingSubProtocol
- The trading sub protocol, used to determine small variations of OrderStrategy.currencyPair
- The currency pair that the order relates to.user
- The user who submitted the order.toboUser
- The trade on behalf of user.remarks
- he contents of the free-form text field that can be filled in when submitting the order.alertTypes
- A set ofAlertType
s that should be used when the order is filled, such as SMS or email.requestId
- The client-generated unique identifier for the order.account
- The account that the order relates to.orders
- The list of orders that make up this strategy.activationDate
- The date and time that this order should be activated on.expirationDate
- The date and time that this order should expire.
-
-
Method Details
-
getParentOrder
Deprecated.Returns the parent order, which can be of any type, except CALL- Returns:
- The parent order
-
getTakeProfitOrder
Deprecated.Returns the take profit child order from within the OCO.- Returns:
- The take profit order
-
getStopLossOrder
Deprecated.Returns the stop loss child order from within the OCO.- Returns:
- The stop loss order
-