public abstract class AbstractStrategyHandler<T extends com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy> extends java.lang.Object implements StrategyHandler
Constructor and Description |
---|
AbstractStrategyHandler(com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection> connectionPoolListener,
T strategy,
OrderAdapterInitialiser configuration,
java.lang.String user,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
activatingTrade() |
java.lang.Boolean |
doNotActivate() |
java.lang.String |
getAssetClass() |
java.util.List<java.lang.String> |
getOrderIds()
Returns a list of order IDs in ascending order.
|
com.caplin.motif.fx.trading.orders.submission.responder.OrderSubmittedResponder |
getOrderSubmittedResponder() |
java.lang.String |
getParentTradeId() |
java.lang.String |
getRequestId() |
T |
getStrategy() |
java.lang.String |
getUser() |
void |
submitOrder(com.caplin.ret.trapi.fx.order.transaction.strategy.submit.OrderSubmissionTransaction transaction) |
void |
tradeActivated() |
void |
tradeSubmitError(java.lang.String reason) |
public AbstractStrategyHandler(com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection> connectionPoolListener, T strategy, OrderAdapterInitialiser configuration, java.lang.String user, org.slf4j.Logger logger)
public com.caplin.motif.fx.trading.orders.submission.responder.OrderSubmittedResponder getOrderSubmittedResponder()
getOrderSubmittedResponder
in interface StrategyHandler
public void activatingTrade()
activatingTrade
in interface StrategyHandler
public void tradeActivated()
tradeActivated
in interface StrategyHandler
public void tradeSubmitError(java.lang.String reason)
tradeSubmitError
in interface StrategyHandler
public java.lang.String getRequestId()
getRequestId
in interface StrategyHandler
public void submitOrder(com.caplin.ret.trapi.fx.order.transaction.strategy.submit.OrderSubmissionTransaction transaction)
submitOrder
in interface StrategyHandler
public java.lang.String getParentTradeId()
getParentTradeId
in interface StrategyHandler
public T getStrategy()
getStrategy
in interface StrategyHandler
public java.lang.String getUser()
getUser
in interface StrategyHandler
public java.lang.String getAssetClass()
getAssetClass
in interface StrategyHandler
public java.lang.Boolean doNotActivate()
doNotActivate
in interface StrategyHandler
public java.util.List<java.lang.String> getOrderIds()
StrategyHandler
getOrderIds
in interface StrategyHandler
Copyright © 2016 Caplin Systems.