Class StrategyDetailsSubscription

  • All Implemented Interfaces:
    com.caplin.ret.trapi.fx.order.listener.OrderEventListener, com.caplin.ret.trapi.fx.order.listener.OrderModifyRequestListener

    public class StrategyDetailsSubscription
    extends java.lang.Object
    implements com.caplin.ret.trapi.fx.order.listener.OrderEventListener
    • Constructor Detail

      • StrategyDetailsSubscription

        public StrategyDetailsSubscription​(OrderAdapterInitialiser adapterServices,
                                           java.lang.String subscriptionId,
                                           com.caplin.ret.trapi.fx.order.strategy.StrategyTree initialStrategyTree,
                                           com.caplin.motif.fx.trading.orders.details.Strategy initialStrategy,
                                           com.caplin.motif.fx.trading.orders.details.StrategyBuilder initialStrategyBuilder,
                                           com.caplin.ret.trapi.concurrent.executor.SharedExecutorService<java.util.concurrent.ExecutorService> serialExecutor,
                                           com.caplin.ret.trapi.concurrent.executor.SharedExecutorService<java.util.concurrent.ExecutorService> parallelExecutor)
    • Method Detail

      • toDisplayString

        public java.lang.String toDisplayString()
        Specified by:
        toDisplayString in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderRegister

        public void onLimitOrderRegister​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderRegister in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderRegisterFail

        public void onLimitOrderRegisterFail​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderRegisterFail in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderActivate

        public void onLimitOrderActivate​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderActivate in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderActivateFail

        public void onLimitOrderActivateFail​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderActivateFail in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderDeactivate

        public void onLimitOrderDeactivate​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderDeactivate in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderDeactivateFail

        public void onLimitOrderDeactivateFail​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderDeactivateFail in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderDelete

        public void onLimitOrderDelete​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderDelete in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onEventHistoryReceived

        public void onEventHistoryReceived​(com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
        Specified by:
        onEventHistoryReceived in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onBulkPreviousOrdersReceived

        public void onBulkPreviousOrdersReceived​(java.util.List<com.caplin.ret.trapi.fx.order.CachedOrder> previousOrder)
        Specified by:
        onBulkPreviousOrdersReceived in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderDeleteFail

        public void onLimitOrderDeleteFail​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderDeleteFail in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderCancel

        public void onLimitOrderCancel​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderCancel in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderCancelPass

        public void onLimitOrderCancelPass​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderCancelPass in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderCancelFail

        public void onLimitOrderCancelFail​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderCancelFail in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderTolerancePass

        public void onLimitOrderTolerancePass​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderTolerancePass in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderToleranceFail

        public void onLimitOrderToleranceFail​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderToleranceFail in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderCompleted

        public void onLimitOrderCompleted​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderCompleted in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderTraderCancelled

        public void onLimitOrderTraderCancelled​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderTraderCancelled in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderTimeout

        public void onLimitOrderTimeout​(com.caplin.ret.trapi.fx.order.OrderEvent event)
        Specified by:
        onLimitOrderTimeout in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderModification

        public void onLimitOrderModification​(com.caplin.ret.trapi.fx.order.OrderModificationEvent event)
        Specified by:
        onLimitOrderModification in interface com.caplin.ret.trapi.fx.order.listener.OrderModifyRequestListener
      • onLimitOrderModifyFail

        public void onLimitOrderModifyFail​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderModifyFail in interface com.caplin.ret.trapi.fx.order.listener.OrderModifyRequestListener
      • onDisconnect

        public void onDisconnect()
        Specified by:
        onDisconnect in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderFillBooked

        public void onLimitOrderFillBooked​(com.caplin.ret.trapi.fx.order.OrderFillEvent event)
        Specified by:
        onLimitOrderFillBooked in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onPreviousOrderReceived

        public void onPreviousOrderReceived​(com.caplin.ret.trapi.fx.FXOrder previousOrder)
        Specified by:
        onPreviousOrderReceived in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener
      • onLimitOrderReject

        public void onLimitOrderReject​(com.caplin.ret.trapi.fx.order.OrderErrorEvent event)
        Specified by:
        onLimitOrderReject in interface com.caplin.ret.trapi.fx.order.listener.OrderEventListener