Class BlockTrade
- java.lang.Object
-
- com.caplin.motif.UserTrade
-
- com.caplin.motif.fx.trading.block.BlockTrade
-
public class BlockTrade extends UserTrade
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockTradeClientCloseSentResponder
getClientCloseSentResponder()
Returns the responder that can send messages from the ClientCloseSent stateBlockTradeExecutableResponder
getExecutableResponder()
Returns the responder that can send messages from the Executable stateBlockTradeExecutedResponder
getExecutedResponder()
Returns the responder that can send messages from the Submitted stateBlockTradeExecuteSentResponder
getExecutedSentResponder()
Returns the responder that can send messages from the ExecuteSent stateList<BlockTradeExecution>
getInputTrades()
Returns the list of underlying input trades that make up the block trade.List<BlockTradeExecution>
getNettedTrades()
Returns the list of underlying netted trades that make up the block trade.BlockTradePickedUpResponder
getPickedUpResponder()
Returns the picked up responderBlockTradeQueuedResponder
getQueuedResponder()
Returns the queued responderBlockTradeSubmittedResponder
getSubmittedResponder()
Returns the responder that can send messages from the Submitted stateList<BlockTradeExecution>
getTrades()
Returns the list of underlyingBlockTradeExecution
that make up the block trade.String
getTradingProtocol()
Returns the trading protocolString
toString()
Returns the BlockTrade as a String-
Methods inherited from class com.caplin.motif.UserTrade
getBackingTrade, getExecutorService, getRequestID, getUsername
-
-
-
-
Method Detail
-
getInputTrades
public List<BlockTradeExecution> 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:
BlockTradeExecution
-
getNettedTrades
public List<BlockTradeExecution> 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:
BlockTradeExecution
-
getTrades
public List<BlockTradeExecution> getTrades()
Returns the list of underlyingBlockTradeExecution
that make up the block trade.- Returns:
- The list of underlying trades.
- See Also:
BlockTradeExecution
-
getSubmittedResponder
public BlockTradeSubmittedResponder getSubmittedResponder()
Returns the responder that can send messages from the Submitted state- Returns:
- The responder for the Submitted state
-
getClientCloseSentResponder
public BlockTradeClientCloseSentResponder getClientCloseSentResponder()
Returns the responder that can send messages from the ClientCloseSent state- Returns:
- The responder for the ClientCloseSent state.
-
getExecutedResponder
public BlockTradeExecutedResponder getExecutedResponder()
Returns the responder that can send messages from the Submitted state- Returns:
- The responder for the Submitted state
-
getExecutedSentResponder
public BlockTradeExecuteSentResponder getExecutedSentResponder()
Returns the responder that can send messages from the ExecuteSent state- Returns:
- The responder for the ExecuteSent state
-
getExecutableResponder
public BlockTradeExecutableResponder getExecutableResponder()
Returns the responder that can send messages from the Executable state- Returns:
- The responder for the Executable state
-
getPickedUpResponder
public BlockTradePickedUpResponder getPickedUpResponder()
Returns the picked up responder- Returns:
- the picked up responder
-
getQueuedResponder
public BlockTradeQueuedResponder getQueuedResponder()
Returns the queued responder- Returns:
- the queued responder
-
getTradingProtocol
public String getTradingProtocol()
Returns the trading protocol- Returns:
- the trading protocol
-
-