Class AbstractRFSLifetimeEventHandler

java.lang.Object
com.caplin.motif.fx.ret.fxtrading.submission.FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
com.caplin.motif.fx.ret.fxtrading.submission.rfs.AbstractRFSLifetimeEventHandler
All Implemented Interfaces:
com.caplin.motif.datasource.CloseableTradeListener, ConversionRateListener, 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:
BlockLifetimeEventHandler, RFSLifetimeEventHandler

public abstract class AbstractRFSLifetimeEventHandler extends FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> implements ConversionRateListener
  • Constructor Details

  • Method Details

    • onQuoteDenied

      public void onQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
      Specified by:
      onQuoteDenied in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
    • onDealSubmitted

      public void onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event)
      Triggered when a block trade is submitted to RET
      Specified by:
      onDealSubmitted in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
      Parameters:
      event - the Trade event submitted to RET
    • onQuoteTimerUpdate

      public void onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event)
      Specified by:
      onQuoteTimerUpdate in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
    • connectionAvailable

      public void connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection)
      Specified by:
      connectionAvailable in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
    • onConversionRateUpdate

      public void onConversionRateUpdate(String bidRate, String askRate)
      Specified by:
      onConversionRateUpdate in interface ConversionRateListener
    • onConversionRateFailure

      public void onConversionRateFailure()
      Specified by:
      onConversionRateFailure in interface ConversionRateListener
    • isSwap

      public abstract boolean isSwap()