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
-
Constructor Summary
ConstructorDescriptionAbstractRFSLifetimeEventHandler
(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 TypeMethodDescriptionvoid
connectionAvailable
(com.caplin.ret.trapi.connection.MarketOrderConnection connection) abstract boolean
isSwap()
void
void
onConversionRateUpdate
(String bidRate, String askRate) void
onDealSubmitted
(com.caplin.ret.trapi.fx.execution.TradeEvent event) Triggered when a block trade is submitted to RETvoid
onQuoteDenied
(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) void
onQuoteTimerUpdate
(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event) Methods inherited from class com.caplin.motif.fx.ret.fxtrading.submission.FXTradeLifetimeEventHandler
close, getTrapiTrade, onDealLogged, tradeClosed
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
connectionRegistrationFailed
Methods inherited from interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
onDealHeld, onDealLoggedError, onDealPickedUp, onDealSubmitError, onQuoteExpired, onQuoteReceived, onQuoteWithdrawn
Methods 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:
onQuoteDenied
in 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:
onDealSubmitted
in 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:
onQuoteTimerUpdate
in interfacecom.caplin.ret.trapi.fx.execution.MarketOrderListener
-
connectionAvailable
public void connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection) - Specified by:
connectionAvailable
in interfacecom.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
-
onConversionRateUpdate
- Specified by:
onConversionRateUpdate
in interfaceConversionRateListener
-
onConversionRateFailure
public void onConversionRateFailure()- Specified by:
onConversionRateFailure
in interfaceConversionRateListener
-
isSwap
public abstract boolean isSwap()
-