Class BlockTrade
java.lang.Object
com.caplin.motif.UserTrade
com.caplin.motif.fx.trading.block.BlockTrade
A BlockTrade is a domain object that represents a block trade. These trades are generally executed from a block trading screen that allows trades to be submitted in bulk.
You do not need to construct instances of this class yourself. Instances of
this class are created by the FX Integration API in response to block trade requests
from the client, and passed to your implementation of BlockTradeListenerFactory.createBlockTradeListener(BlockTrade)
.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the responder that can send messages from the ClientCloseSent stateReturns the responder that can send messages from the Executable stateReturns the responder that can send messages from the Submitted stateReturns the responder that can send messages from the ExecuteSent stateReturns the list of underlying input trades that make up the block trade.Returns the list of underlying netted trades that make up the block trade.Returns the picked up responderReturns the queued responderReturns the responder that can send messages from the Submitted stateReturns the list of underlyingBlockTradeExecution
that make up the block trade.Returns the trading protocoltoString()
Returns the BlockTrade as a StringMethods inherited from class com.caplin.motif.UserTrade
getBackingTrade, getExecutorService, getRequestID, getUsername
-
Method Details
-
getInputTrades
Returns the list of underlying input trades that make up the block trade. Does not include the netted trades.- Returns:
- The list of underlying input trades.
- See Also:
-
getNettedTrades
Returns the list of underlying netted trades that make up the block trade. Does not include the client trades.- Returns:
- The list of underlying netted trades.
- See Also:
-
getTrades
Returns the list of underlyingBlockTradeExecution
that make up the block trade.- Returns:
- The list of underlying trades.
- See Also:
-
getSubmittedResponder
Returns the responder that can send messages from the Submitted state- Returns:
- The responder for the Submitted state
-
getClientCloseSentResponder
Returns the responder that can send messages from the ClientCloseSent state- Returns:
- The responder for the ClientCloseSent state.
-
getExecutedResponder
Returns the responder that can send messages from the Submitted state- Returns:
- The responder for the Submitted state
-
getExecutedSentResponder
Returns the responder that can send messages from the ExecuteSent state- Returns:
- The responder for the ExecuteSent state
-
getExecutableResponder
Returns the responder that can send messages from the Executable state- Returns:
- The responder for the Executable state
-
getPickedUpResponder
Returns the picked up responder- Returns:
- the picked up responder
-
getQueuedResponder
Returns the queued responder- Returns:
- the queued responder
-
getTradingProtocol
Returns the trading protocol- Returns:
- the trading protocol
-
toString
Returns the BlockTrade as a String
-