Class 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 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 interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
      • connectionRegistrationFailed

        public void connectionRegistrationFailed​(java.lang.String reason)
        Specified by:
        connectionRegistrationFailed in interface com.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)