public class BlockLifetimeEventHandler extends RFSLifetimeEventHandler<BlockHandler,com.caplin.motif.fx.trading.block.BlockTrade> implements com.caplin.motif.fx.trading.block.BlockTradeListener
Constructor and Description |
---|
BlockLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser,
BlockHandler tradeHandler,
RFSResponderProvider<com.caplin.motif.fx.trading.block.BlockTrade> responderProvider,
BlockTradeBlotterDataProvider blotterDataProvider,
UserTradeInfo userTradeInfo) |
Modifier and Type | Method and Description |
---|---|
com.caplin.ret.trapi.fx.execution.TradeAcceptanceBuilder |
createFxTradeAcceptBuilder() |
com.caplin.motif.fx.rates.FXQuote |
getQuote(com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote)
Returns the quote
|
void |
onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event)
Triggered when a block trade is submitted to RET
|
void |
onExecute(com.caplin.motif.fx.trading.block.event.BlockTradeExecuteEvent event)
Triggered when a block trade is executed
|
void |
onSubmit(com.caplin.motif.fx.trading.block.event.BlockTradeSubmitEvent event)
Triggered when a block trade is submitted
|
com.caplin.ret.trapi.fx.execution.MarketOrder |
setUpTrade(com.caplin.ret.trapi.fx.execution.TradingService tradingService,
com.caplin.ret.trapi.fx.execution.AccountService accountService) |
connectionAvailable, connectionRegistrationFailed, createFxTradeAcceptBuilder, getTrapiTrade, isQuoteValid, onClientClose, onDealHeld, onDealLogged, onDealLoggedError, onDealPickedUp, onDealSubmitError, onExecute, onQuoteDenied, onQuoteExpired, onQuoteReceived, onQuoteTimerUpdate, onQuoteWithdrawn, onSubmit
close, onTradeClosed, releaseConnection
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BlockLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, BlockHandler tradeHandler, RFSResponderProvider<com.caplin.motif.fx.trading.block.BlockTrade> responderProvider, BlockTradeBlotterDataProvider blotterDataProvider, UserTradeInfo userTradeInfo)
public void onSubmit(com.caplin.motif.fx.trading.block.event.BlockTradeSubmitEvent event)
onSubmit
in interface com.caplin.motif.fx.trading.block.BlockTradeListener
event
- the BlockTradeSubmitEventpublic void onExecute(com.caplin.motif.fx.trading.block.event.BlockTradeExecuteEvent event)
onExecute
in interface com.caplin.motif.fx.trading.block.BlockTradeListener
event
- the BlockTradeExecuteEventpublic 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 trapiQuote) throws QuoteCreationException
trapiQuote
- the quote from RETQuoteCreationException
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
event
- the Trade event submitted to RETCopyright © 2016 Caplin Systems.