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

java.lang.Object
com.caplin.motif.fx.ret.fxtrading.submission.FXTradeLifetimeEventHandler<T>
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 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

    Modifier and Type
    Method
    Description
    void
     
    abstract com.caplin.ret.trapi.fx.execution.MarketOrder
     
    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 Details

    • 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