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 Object
implements com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
-
Constructor Summary
ConstructorDescriptionOrderSubmissionDelegate
(OrderAdapterInitialiser initialiser, String user, String retClientUsername) -
Method Summary
Modifier and TypeMethodDescriptionvoid
connectionAvailable
(com.caplin.ret.trapi.connection.OrderTradingConnection limitOrderConnection) void
connectionRegistrationFailed
(String reason) void
customStrategyClosed
(MotifOrderStrategy customOrderStrategy) void
customStrategySubmitted
(MotifOrderStrategy customOrderStrategy) void
ifDoneOcoStrategyClosed
(IfDoneOCOStrategy ifDoneOCOStrategy) void
ifDoneOcoStrategySubmitted
(IfDoneOCOStrategy ifDoneOCOStrategy) void
ifDoneStrategyClosed
(IfDoneStrategy ifDoneStrategy) void
ifDoneStrategySubmitted
(IfDoneStrategy ifDoneStrategy) void
ifTimeoutStrategyClosed
(IfTimeoutStrategy strategy) void
ifTimeoutStrategySubmitted
(IfTimeoutStrategy strategy) void
ocoStrategyClosed
(OCOStrategy ocoStrategy) void
ocoStrategySubmitted
(OCOStrategy ocoStrategy) void
onOrderTransactionCreateFailed
(String reason) void
void
singleStrategyClosed
(SingleStrategy singleStrategy) void
singleStrategySubmitted
(SingleStrategy singleStrategy)
-
Constructor Details
-
OrderSubmissionDelegate
public OrderSubmissionDelegate(OrderAdapterInitialiser initialiser, String user, String retClientUsername)
-
-
Method Details
-
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
- Specified by:
connectionRegistrationFailed
in interfacecom.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
-
onOrderTransactionCreatePass
public void onOrderTransactionCreatePass() -
onOrderTransactionCreateFailed
-
ifDoneOcoStrategySubmitted
-
ifDoneStrategySubmitted
-
ocoStrategySubmitted
-
singleStrategySubmitted
-
ifTimeoutStrategySubmitted
-
customStrategySubmitted
-
ifDoneOcoStrategyClosed
-
ifDoneStrategyClosed
-
ocoStrategyClosed
-
singleStrategyClosed
-
ifTimeoutStrategyClosed
-
customStrategyClosed
-