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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRFSLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, UserTradeInfo userTradeInfo, FxTradingAdapterInitialiser initialiser, AbstractBlotterDataProvider<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> blotterDataProvider, String tradingProtocol, ConversionRateCurrencyPairProvider conversionRateCurrencyPairProvider, CrossCurrencyPairProvider crossCurrencyPairProvider, com.caplin.ret.trapi.concurrent.executor.SharedExecutorService<ExecutorService> serialExecutor, RFSTradePropertiesFactory rfsTradePropertiesFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection) abstract booleanisSwap()voidvoidonConversionRateUpdate(String bidRate, String askRate) voidonDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event) Triggered when a block trade is submitted to RETvoidonQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) voidonQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event) Methods inherited from class com.caplin.motif.fx.ret.fxtrading.submission.FXTradeLifetimeEventHandler
close, getTrapiTrade, onDealLogged, tradeClosedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener
connectionRegistrationFailedMethods inherited from interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
onDealHeld, onDealLoggedError, onDealPickedUp, onDealSubmitError, onQuoteExpired, onQuoteReceived, onQuoteWithdrawnMethods inherited from interface com.caplin.trading.TradeListener
receiveEvent, receiveInvalidFieldsEvent, receiveInvalidTransitionEvent
-
Constructor Details
-
Method Details
-
onQuoteDenied
public void onQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) - Specified by:
onQuoteDeniedin interfacecom.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:
onDealSubmittedin interfacecom.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:
onQuoteTimerUpdatein interfacecom.caplin.ret.trapi.fx.execution.MarketOrderListener
-
connectionAvailable
public void connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection) - Specified by:
connectionAvailablein interfacecom.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
-
onConversionRateUpdate
- Specified by:
onConversionRateUpdatein interfaceConversionRateListener
-
onConversionRateFailure
public void onConversionRateFailure()- Specified by:
onConversionRateFailurein interfaceConversionRateListener
-
isSwap
public abstract boolean isSwap()
-