Class FXTradeLifetimeEventHandler<T extends com.caplin.motif.UserTrade>

  • All Implemented Interfaces:
    com.caplin.motif.datasource.CloseableTradeListener, com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>, com.caplin.ret.trapi.fx.execution.MarketOrderListener, com.caplin.trading.TradeListener
    Direct Known Subclasses:
    AbstractRFSLifetimeEventHandler, ESPLifetimeEventHandler

    public abstract class FXTradeLifetimeEventHandler<T extends com.caplin.motif.UserTrade>
    extends java.lang.Object
    implements com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>, com.caplin.motif.datasource.CloseableTradeListener, com.caplin.ret.trapi.fx.execution.MarketOrderListener
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      abstract com.caplin.ret.trapi.fx.execution.MarketOrder getTrapiTrade()  
      void onDealLogged​(com.caplin.ret.trapi.fx.execution.QuoteEvent quote)  
      void tradeClosed​(com.caplin.trading.Trade closeTrade)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener

        connectionAvailable, connectionRegistrationFailed
      • Methods inherited from interface com.caplin.ret.trapi.fx.execution.MarketOrderListener

        onDealHeld, onDealLoggedError, onDealPickedUp, onDealSubmitError, onDealSubmitted, onQuoteDenied, onQuoteExpired, onQuoteReceived, onQuoteTimerUpdate, onQuoteWithdrawn
      • Methods inherited from interface com.caplin.trading.TradeListener

        receiveEvent, receiveInvalidFieldsEvent, receiveInvalidTransitionEvent
    • Method Detail

      • getTrapiTrade

        public abstract com.caplin.ret.trapi.fx.execution.MarketOrder getTrapiTrade()
      • tradeClosed

        public void tradeClosed​(com.caplin.trading.Trade closeTrade)
        Specified by:
        tradeClosed in interface com.caplin.motif.datasource.CloseableTradeListener
      • close

        public void close()
      • onDealLogged

        public void onDealLogged​(com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
        Specified by:
        onDealLogged in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener