public class StrategyFactory
extends java.lang.Object
Constructor and Description |
---|
StrategyFactory(com.caplin.ret.trapi.fx.order.transaction.strategy.submit.OrderSubmissionTransaction transaction,
OrderAdapterInitialiser configuration,
StrategyHandler strategyHandler) |
Modifier and Type | Method and Description |
---|---|
com.caplin.ret.trapi.fx.FXOrder |
buildIfDoneChildOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder,
com.caplin.ret.trapi.fx.FXOrder parentOrder,
java.lang.String requestId)
The if done child is the conditionally executed order in an IF-DONE or IF-DONE-OCO strategy.
|
com.caplin.ret.trapi.fx.FXOrder |
buildIfTimeoutOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder,
com.caplin.ret.trapi.fx.FXOrder parentOrder,
java.lang.String requestId)
The if timeout is a conditionally executed order in an IF-TIMEOUT pairing.
|
com.caplin.ret.trapi.fx.FXOrder |
buildOCOPartnerOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder,
com.caplin.ret.trapi.fx.FXOrder partnerOrder,
java.lang.String requestId)
The OCO partner is a conditionally executed order in an OCO (One-Cancels-Other) or IF-DONE-OCO strategy.
|
com.caplin.ret.trapi.fx.FXOrder |
buildSingleOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder,
java.lang.String requestId)
The single order is the sole order in a Single strategy, as well as the basis of complex
orders.
|
public StrategyFactory(com.caplin.ret.trapi.fx.order.transaction.strategy.submit.OrderSubmissionTransaction transaction, OrderAdapterInitialiser configuration, StrategyHandler strategyHandler)
public com.caplin.ret.trapi.fx.FXOrder buildSingleOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder, java.lang.String requestId) throws java.lang.Exception
submittedOrder
- an object which represents the order submitted via the FXMotifjava.lang.Exception
public com.caplin.ret.trapi.fx.FXOrder buildIfDoneChildOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder, com.caplin.ret.trapi.fx.FXOrder parentOrder, java.lang.String requestId) throws java.lang.Exception
submittedOrder
- an object which represents the order submitted via the FXMotifparentOrder
- a configured single order which will be the parent of the newly created orderjava.lang.Exception
public com.caplin.ret.trapi.fx.FXOrder buildOCOPartnerOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder, com.caplin.ret.trapi.fx.FXOrder partnerOrder, java.lang.String requestId) throws java.lang.Exception
submittedOrder
- an object which represents the order submitted via the FXMotifpartnerOrder
- a configured order which will be the partner of the newly created orderjava.lang.Exception
public com.caplin.ret.trapi.fx.FXOrder buildIfTimeoutOrder(com.caplin.motif.fx.trading.orders.submission.Order submittedOrder, com.caplin.ret.trapi.fx.FXOrder parentOrder, java.lang.String requestId) throws java.lang.Exception
submittedOrder
- an object which represents the order submitted via the FXMotifparentOrder
- a configured single order which will be the parent of the newly created orderjava.lang.Exception
Copyright © 2016 Caplin Systems.