Class OrderSubmissionDelegate
- java.lang.Object
-
- com.caplin.motif.fx.ret.orders.trading.OrderSubmissionDelegate
-
- All Implemented Interfaces:
com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
public class OrderSubmissionDelegate extends java.lang.Object implements com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
-
-
Constructor Summary
Constructors Constructor Description OrderSubmissionDelegate(OrderAdapterInitialiser initialiser, java.lang.String user, java.lang.String retClientUsername)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectionAvailable(com.caplin.ret.trapi.connection.OrderTradingConnection limitOrderConnection)
void
connectionRegistrationFailed(java.lang.String reason)
void
customStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy customOrderStrategy)
void
customStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy customOrderStrategy)
void
ifDoneOcoStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneOCOStrategy ifDoneOCOStrategy)
void
ifDoneOcoStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneOCOStrategy ifDoneOCOStrategy)
void
ifDoneStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneStrategy ifDoneStrategy)
void
ifDoneStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneStrategy ifDoneStrategy)
void
ifTimeoutStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.IfTimeoutStrategy strategy)
void
ifTimeoutStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.IfTimeoutStrategy strategy)
void
ocoStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.OCOStrategy ocoStrategy)
void
ocoStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.OCOStrategy ocoStrategy)
void
onOrderTransactionCreateFailed(java.lang.String reason)
void
onOrderTransactionCreatePass()
void
singleStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.SingleStrategy singleStrategy)
void
singleStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.SingleStrategy singleStrategy)
-
-
-
Constructor Detail
-
OrderSubmissionDelegate
public OrderSubmissionDelegate(OrderAdapterInitialiser initialiser, java.lang.String user, java.lang.String retClientUsername)
-
-
Method Detail
-
connectionAvailable
public void connectionAvailable(com.caplin.ret.trapi.connection.OrderTradingConnection limitOrderConnection)
- Specified by:
connectionAvailable
in interfacecom.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
-
connectionRegistrationFailed
public void connectionRegistrationFailed(java.lang.String reason)
- Specified by:
connectionRegistrationFailed
in interfacecom.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
-
onOrderTransactionCreatePass
public void onOrderTransactionCreatePass()
-
onOrderTransactionCreateFailed
public void onOrderTransactionCreateFailed(java.lang.String reason)
-
ifDoneOcoStrategySubmitted
public void ifDoneOcoStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneOCOStrategy ifDoneOCOStrategy)
-
ifDoneStrategySubmitted
public void ifDoneStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneStrategy ifDoneStrategy)
-
ocoStrategySubmitted
public void ocoStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.OCOStrategy ocoStrategy)
-
singleStrategySubmitted
public void singleStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.SingleStrategy singleStrategy)
-
ifTimeoutStrategySubmitted
public void ifTimeoutStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.IfTimeoutStrategy strategy)
-
customStrategySubmitted
public void customStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy customOrderStrategy)
-
ifDoneOcoStrategyClosed
public void ifDoneOcoStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneOCOStrategy ifDoneOCOStrategy)
-
ifDoneStrategyClosed
public void ifDoneStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.IfDoneStrategy ifDoneStrategy)
-
ocoStrategyClosed
public void ocoStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.OCOStrategy ocoStrategy)
-
singleStrategyClosed
public void singleStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.SingleStrategy singleStrategy)
-
ifTimeoutStrategyClosed
public void ifTimeoutStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.IfTimeoutStrategy strategy)
-
customStrategyClosed
public void customStrategyClosed(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy customOrderStrategy)
-
-