public class ESPLifetimeEventHandler extends FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.esp.ESPTrade> implements com.caplin.generated.motif.fx.trading.esp.ESPTradeListener
Constructor and Description |
---|
ESPLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser,
com.caplin.generated.motif.fx.trading.esp.ESPTrade trade,
AbstractBlotterDataProvider<com.caplin.generated.motif.fx.trading.esp.ESPTrade> blotterDataProvider,
UserTradeInfo userTradeInfo,
ESPConfirmationFactory espConfirmationFactory) |
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.MarketOrder |
getTrapiTrade() |
void |
onClientClose(com.caplin.generated.motif.fx.trading.esp.events.client.ClientCloseTradeEvent event) |
void |
onDealHeld(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event) |
void |
onDealLogged(com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
Called by TrAPI when a deal has been done, once
TradingEngine.AcceptDeal(String, String, COrder)
has been successfully called. |
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 |
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 quote) |
void |
onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event) |
void |
onQuoteWithdrawn(com.caplin.ret.trapi.fx.execution.TradeEvent event) |
void |
onSubmit(com.caplin.generated.motif.fx.trading.esp.events.client.SubmitTradeEvent event) |
void |
onTradeClosed() |
void |
receiveEvent(com.caplin.trading.TradeEvent event) |
void |
receiveInvalidFieldsEvent(com.caplin.trading.InvalidFieldsEvent event) |
void |
receiveInvalidTransitionEvent(com.caplin.trading.InvalidTransitionEvent event) |
close, tradeClosed
public ESPLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, com.caplin.generated.motif.fx.trading.esp.ESPTrade trade, AbstractBlotterDataProvider<com.caplin.generated.motif.fx.trading.esp.ESPTrade> blotterDataProvider, UserTradeInfo userTradeInfo, ESPConfirmationFactory espConfirmationFactory)
public com.caplin.ret.trapi.fx.execution.MarketOrder getTrapiTrade()
getTrapiTrade
in class FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.esp.ESPTrade>
public void onSubmit(com.caplin.generated.motif.fx.trading.esp.events.client.SubmitTradeEvent event)
onSubmit
in interface com.caplin.generated.motif.fx.trading.esp.ESPTradeListener
public void onClientClose(com.caplin.generated.motif.fx.trading.esp.events.client.ClientCloseTradeEvent event)
onClientClose
in interface com.caplin.generated.motif.fx.trading.esp.ESPTradeListener
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.esp.ESPTradeListener
receiveInvalidTransitionEvent
in interface com.caplin.trading.TradeListener
public void receiveInvalidFieldsEvent(com.caplin.trading.InvalidFieldsEvent event)
receiveInvalidFieldsEvent
in interface com.caplin.generated.motif.fx.trading.esp.ESPTradeListener
receiveInvalidFieldsEvent
in interface com.caplin.trading.TradeListener
public void onTradeClosed()
onTradeClosed
in interface com.caplin.generated.motif.fx.trading.esp.ESPTradeListener
public void onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event)
onDealSubmitted
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
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)
TradingEngine.AcceptDeal(String, String, COrder)
has been successfully called.onDealLogged
in interface com.caplin.ret.trapi.fx.execution.MarketOrderListener
quote
- a QuoteEvent
representing the completed deal.public void onQuoteReceived(com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
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)
connectionAvailable
in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
Copyright © 2019 Caplin Systems.