H
- A HandlerT
- A Trade Typepublic abstract class RFSLifetimeEventHandler<H extends TradeTypeHandler<T>,T extends com.caplin.motif.fx.trading.FXTrade> extends FXTradeLifetimeEventHandler<T>
Constructor and Description |
---|
RFSLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser,
UserTradeInfo userTradeInfo,
H tradeHandler,
RFSResponderProvider<T> responderProvider,
AbstractBlotterDataProvider<T> blotterProvider,
RFSStateEventFactory<T> tradeStateEventFactory,
RFSQuoteValidator quoteValidator,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection) |
void |
connectionRegistrationFailed(java.lang.String reason) |
com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder |
createFxTradeAcceptBuilder(int priceVersion) |
com.caplin.ret.trapi.fx.execution.MarketOrder |
getTrapiTrade() |
boolean |
isQuoteValid(RFSQuote currentQuote,
com.caplin.motif.fx.trading.rfs.event.ExecuteEvent event) |
void |
onClientClose() |
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 |
onExecute(com.caplin.motif.fx.trading.rfs.event.ExecuteEvent event) |
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 rfsQuote) |
void |
onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event) |
void |
onQuoteWithdrawn(com.caplin.ret.trapi.fx.execution.TradeEvent event) |
void |
onSubmit() |
close, onTradeClosed, releaseConnection
public RFSLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, UserTradeInfo userTradeInfo, H tradeHandler, RFSResponderProvider<T> responderProvider, AbstractBlotterDataProvider<T> blotterProvider, RFSStateEventFactory<T> tradeStateEventFactory, RFSQuoteValidator quoteValidator, org.slf4j.Logger logger)
public com.caplin.ret.trapi.fx.execution.MarketOrder getTrapiTrade()
getTrapiTrade
in class FXTradeLifetimeEventHandler<T extends com.caplin.motif.fx.trading.FXTrade>
public void onSubmit()
public void onClientClose()
public void onExecute(com.caplin.motif.fx.trading.rfs.event.ExecuteEvent event)
public boolean isQuoteValid(RFSQuote currentQuote, com.caplin.motif.fx.trading.rfs.event.ExecuteEvent event)
public void onDealPickedUp(com.caplin.ret.trapi.fx.execution.TradeEvent event)
public void onDealHeld(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
public void onDealLogged(com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
public void onQuoteReceived(com.caplin.ret.trapi.fx.execution.QuoteEvent rfsQuote)
public void onQuoteWithdrawn(com.caplin.ret.trapi.fx.execution.TradeEvent event)
public void onQuoteExpired(com.caplin.ret.trapi.fx.execution.TradeEvent event)
public void onQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
public void onDealSubmitError(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
public void onDealLoggedError(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
public void onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event)
public void connectionRegistrationFailed(java.lang.String reason)
public void connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection)
public com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder createFxTradeAcceptBuilder(int priceVersion)
Copyright © 2016 Caplin Systems.