public class ExecutionLifetimeEventHandler extends RFSLifetimeEventHandler<RFSHandler,com.caplin.motif.fx.trading.rfs.RFSTrade> implements com.caplin.motif.fx.trading.rfs.RFSTradeListener, ConversionRateListener
Constructor and Description |
---|
ExecutionLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser,
RFSHandler tradeHandler,
RFSResponderProvider<com.caplin.motif.fx.trading.rfs.RFSTrade> responderProvider,
FXExecutionBlotterDataProvider<com.caplin.motif.fx.trading.rfs.RFSTrade> blotterDataProvider,
UserTradeInfo userTradeInfo,
ExecutionFactory executionFactory,
ConversionRateCurrencyPairProvider conversionRateCurrencyPairProvider,
CrossCurrencyPairProvider crossCurrencyPairProvider) |
Modifier and Type | Method and Description |
---|---|
void |
connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection) |
com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder |
createFxTradeAcceptBuilder() |
com.caplin.motif.fx.rates.FXQuote |
getQuote(com.caplin.ret.trapi.fx.execution.QuoteEvent rfsQuote) |
void |
onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event) |
void |
onExecute(com.caplin.motif.fx.trading.rfs.event.RFSExecuteEvent event) |
void |
onFailure() |
void |
onRateUpdate(java.lang.String bidRate,
java.lang.String askRate) |
void |
onSubmit(com.caplin.motif.fx.trading.rfs.event.RFSSubmitEvent submitEvent) |
com.caplin.ret.trapi.fx.execution.MarketOrder |
setUpTrade(com.caplin.ret.trapi.fx.execution.TradingService tradingService,
com.caplin.ret.trapi.fx.execution.AccountService accountService) |
connectionRegistrationFailed, createFxTradeAcceptBuilder, getTrapiTrade, isQuoteValid, onClientClose, onDealHeld, onDealLogged, onDealLoggedError, onDealPickedUp, onDealSubmitError, onExecute, onQuoteDenied, onQuoteExpired, onQuoteReceived, onQuoteTimerUpdate, onQuoteWithdrawn, onSubmit
close, onTradeClosed, releaseConnection
public ExecutionLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, RFSHandler tradeHandler, RFSResponderProvider<com.caplin.motif.fx.trading.rfs.RFSTrade> responderProvider, FXExecutionBlotterDataProvider<com.caplin.motif.fx.trading.rfs.RFSTrade> blotterDataProvider, UserTradeInfo userTradeInfo, ExecutionFactory executionFactory, ConversionRateCurrencyPairProvider conversionRateCurrencyPairProvider, CrossCurrencyPairProvider crossCurrencyPairProvider)
public void onExecute(com.caplin.motif.fx.trading.rfs.event.RFSExecuteEvent event)
onExecute
in interface com.caplin.motif.fx.trading.rfs.RFSTradeListener
public void onSubmit(com.caplin.motif.fx.trading.rfs.event.RFSSubmitEvent submitEvent)
onSubmit
in interface com.caplin.motif.fx.trading.rfs.RFSTradeListener
public void connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection)
connectionAvailable
in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
connectionAvailable
in class RFSLifetimeEventHandler<RFSHandler,com.caplin.motif.fx.trading.rfs.RFSTrade>
public void onRateUpdate(java.lang.String bidRate, java.lang.String askRate)
onRateUpdate
in interface ConversionRateListener
public void onFailure()
onFailure
in interface ConversionRateListener
public com.caplin.ret.trapi.fx.execution.MarketOrder setUpTrade(com.caplin.ret.trapi.fx.execution.TradingService tradingService, com.caplin.ret.trapi.fx.execution.AccountService accountService) throws java.lang.Exception
java.lang.Exception
public com.caplin.motif.fx.rates.FXQuote getQuote(com.caplin.ret.trapi.fx.execution.QuoteEvent rfsQuote) throws QuoteCreationException
QuoteCreationException
public com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder createFxTradeAcceptBuilder()
public void onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event)
onDealSubmitted
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
Copyright © 2016 Caplin Systems.