public class ESPLifetimeEventHandler extends FXTradeLifetimeEventHandler<com.caplin.motif.fx.trading.esp.ESPTrade> implements com.caplin.motif.fx.trading.esp.ESPTradeListener
Constructor and Description |
---|
ESPLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser,
com.caplin.motif.fx.trading.esp.ESPTrade trade,
AbstractBlotterDataProvider<com.caplin.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() |
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, com.m_systems.trapi.lib.record.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.motif.fx.trading.esp.event.ESPSubmitEvent event) |
close, onTradeClosed, releaseConnection
public ESPLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, com.caplin.motif.fx.trading.esp.ESPTrade trade, AbstractBlotterDataProvider<com.caplin.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.motif.fx.trading.esp.ESPTrade>
public void onSubmit(com.caplin.motif.fx.trading.esp.event.ESPSubmitEvent event)
onSubmit
in interface com.caplin.motif.fx.trading.esp.ESPTradeListener
public void onClientClose()
onClientClose
in interface com.caplin.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, com.m_systems.trapi.lib.record.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 © 2016 Caplin Systems.