H
- A Handlerpublic class RFSLifetimeEventHandler<H extends TradeTypeHandler> extends FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> implements com.caplin.generated.motif.fx.trading.rfs.RFSTradeListener, ConversionRateListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
L1_PREFIX |
static java.lang.String |
L2_PREFIX |
Constructor and Description |
---|
RFSLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser,
UserTradeInfo userTradeInfo,
H tradeHandler,
AbstractBlotterDataProvider<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> blotterProvider,
ExecutionFactory executionFactory,
ConversionRateCurrencyPairProvider conversionRateCurrencyPairProvider,
CrossCurrencyPairProvider crossCurrencyPairProvider) |
Modifier and Type | Method and Description |
---|---|
void |
_connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection) |
void |
connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection) |
void |
connectionRegistrationFailed(java.lang.String reason) |
com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder |
createFxTradeAcceptBuilder() |
com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder |
createFxTradeAcceptBuilder(int priceVersion) |
com.caplin.motif.datasource.Message |
getQuote(com.caplin.ret.trapi.fx.execution.QuoteEvent rfsQuote) |
com.caplin.ret.trapi.fx.execution.MarketOrder |
getTrapiTrade() |
boolean |
isQuoteValid(RFSQuote currentQuote,
com.caplin.generated.motif.fx.trading.rfs.events.client.ExecuteTradeEvent event) |
void |
onClientClose(com.caplin.generated.motif.fx.trading.rfs.events.client.ClientCloseTradeEvent clientCloseTradeEvent) |
void |
onDealHeld(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) |
void |
onDealLogged(com.caplin.ret.trapi.fx.execution.QuoteEvent quote) |
void |
onDealLoggedError(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) |
void |
onDealPickedUp(com.caplin.ret.trapi.fx.execution.TradeEvent event) |
void |
onDealSubmitError(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) |
void |
onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event) |
void |
onExecute(com.caplin.generated.motif.fx.trading.rfs.events.client.ExecuteTradeEvent event) |
void |
onFailure() |
void |
onQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) |
void |
onQuoteExpired(com.caplin.ret.trapi.fx.execution.TradeEvent event) |
void |
onQuoteReceived(com.caplin.ret.trapi.fx.execution.QuoteEvent quoteEvent) |
void |
onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event) |
void |
onQuoteWithdrawn(com.caplin.ret.trapi.fx.execution.TradeEvent event) |
void |
onRateUpdate(java.lang.String bidRate,
java.lang.String askRate) |
void |
onSubmit(com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent submitEvent) |
void |
onTradeClosed() |
void |
receiveEvent(com.caplin.trading.TradeEvent event) |
void |
receiveInvalidFieldsEvent(com.caplin.trading.InvalidFieldsEvent event) |
void |
receiveInvalidTransitionEvent(com.caplin.trading.InvalidTransitionEvent event) |
com.caplin.ret.trapi.fx.execution.MarketOrder |
setUpTrade(com.caplin.ret.trapi.fx.execution.TradingService tradingService,
com.caplin.ret.trapi.fx.execution.AccountService accountService) |
close, tradeClosed
public static final java.lang.String L1_PREFIX
public static final java.lang.String L2_PREFIX
public RFSLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, UserTradeInfo userTradeInfo, H tradeHandler, AbstractBlotterDataProvider<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> blotterProvider, ExecutionFactory executionFactory, ConversionRateCurrencyPairProvider conversionRateCurrencyPairProvider, CrossCurrencyPairProvider crossCurrencyPairProvider)
public com.caplin.ret.trapi.fx.execution.MarketOrder getTrapiTrade()
getTrapiTrade
in class FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public boolean isQuoteValid(RFSQuote currentQuote, com.caplin.generated.motif.fx.trading.rfs.events.client.ExecuteTradeEvent event)
public void onDealPickedUp(com.caplin.ret.trapi.fx.execution.TradeEvent event)
onDealPickedUp
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onDealHeld(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
onDealHeld
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onDealLogged(com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
onDealLogged
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onQuoteReceived(com.caplin.ret.trapi.fx.execution.QuoteEvent quoteEvent)
onQuoteReceived
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onQuoteWithdrawn(com.caplin.ret.trapi.fx.execution.TradeEvent event)
onQuoteWithdrawn
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onQuoteExpired(com.caplin.ret.trapi.fx.execution.TradeEvent event)
onQuoteExpired
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
onQuoteDenied
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onDealSubmitError(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
onDealSubmitError
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onDealLoggedError(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
onDealLoggedError
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event)
onQuoteTimerUpdate
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
public void connectionRegistrationFailed(java.lang.String reason)
connectionRegistrationFailed
in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
public void _connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection)
public com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder createFxTradeAcceptBuilder(int priceVersion)
public void onExecute(com.caplin.generated.motif.fx.trading.rfs.events.client.ExecuteTradeEvent event)
onExecute
in interface com.caplin.generated.motif.fx.trading.rfs.RFSTradeListener
public void onClientClose(com.caplin.generated.motif.fx.trading.rfs.events.client.ClientCloseTradeEvent clientCloseTradeEvent)
onClientClose
in interface com.caplin.generated.motif.fx.trading.rfs.RFSTradeListener
public void onSubmit(com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent submitEvent)
onSubmit
in interface com.caplin.generated.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>
public void onTradeClosed()
onTradeClosed
in interface com.caplin.generated.motif.fx.trading.rfs.RFSTradeListener
public void receiveEvent(com.caplin.trading.TradeEvent event) throws com.caplin.trading.TradeException
receiveEvent
in interface com.caplin.trading.TradeListener
com.caplin.trading.TradeException
public void receiveInvalidTransitionEvent(com.caplin.trading.InvalidTransitionEvent event)
receiveInvalidTransitionEvent
in interface com.caplin.generated.motif.fx.trading.rfs.RFSTradeListener
receiveInvalidTransitionEvent
in interface com.caplin.trading.TradeListener
public void receiveInvalidFieldsEvent(com.caplin.trading.InvalidFieldsEvent event)
receiveInvalidFieldsEvent
in interface com.caplin.generated.motif.fx.trading.rfs.RFSTradeListener
receiveInvalidFieldsEvent
in interface com.caplin.trading.TradeListener
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.datasource.Message 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 © 2019 Caplin Systems.