public class BlockTradeExecution extends FXExecution<BlockTradeLeg>
Base class for block trade objects within the FX Integration API.
Any Block Trades which desire execution capabalities should extend this class
trade
Constructor and Description |
---|
BlockTradeExecution(com.caplin.trading.Trade trade,
BlockTradeLeg nearLeg,
BlockTradeLeg farLeg)
Constructs a BlockTradeExecution by wrapping around the original trade
and trade legs.
|
Modifier and Type | Method and Description |
---|---|
FXTradingProtocol |
getTradingProtocol()
Returns the
FXTradingProtocol that was used to enter this trade. |
TradingSubProtocol |
getTradingSubProtocol()
Returns the
TradingSubProtocol that was used to enter this trade. |
boolean |
isNetted()
Whether or not this block trade is netted.
|
getAccount, getBaseCurrency, getCaption, getCurrencyPair, getDealtCurrency, getFarLeg, getNearLeg, getSwapType, getTermCurrency, getTradingType, toString
createEvent, getCurrentState, getField, getRequestID, getTradeChannelSubject, getUsername, sendEvent
public BlockTradeExecution(com.caplin.trading.Trade trade, BlockTradeLeg nearLeg, BlockTradeLeg farLeg)
trade
- the underlying TradenearLeg
- The near leg of the TradefarLeg
- The far leg of the Tradepublic boolean isNetted()
true
if this is a netted trade, false
otherwise.public FXTradingProtocol getTradingProtocol()
FXTrade
FXTradingProtocol
that was used to enter this trade.getTradingProtocol
in class FXTrade
FXTradingProtocol
used to enter this trade.public TradingSubProtocol getTradingSubProtocol()
FXTrade
TradingSubProtocol
that was used to enter this trade.
This defaults to TradingSubProtocol.NONE
if no protocol was provided.getTradingSubProtocol
in class FXTrade
TradingSubProtocol
that was use to enter this trade.Copyright © 2015 Caplin Systems.