Class BlockTradeLeg
- java.lang.Object
-
- com.caplin.motif.fx.trading.block.BlockTradeLeg
-
public class BlockTradeLeg extends Object
Represents a trade within an Block Trade
-
-
Constructor Summary
Constructors Constructor Description BlockTradeLeg(com.caplin.trading.Trade trade, String legId, LegType legType, String tradingType, BlockSwapType swapType)
Instantiates a BlockTrade leg.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Account
getAccount()
Returns the accountString
getAmount()
Returns the amountString
getBaseCurrency()
Returns the base currencyBuySell
getBuySell()
Returns theBuySell
direction of this leg.String
getCurrencyPair()
Returns the currency pairString
getCustomField(String fieldName)
Returns a field not provided by the getters that was set on the trade.String
getDealtCurrency()
Returns the dealt currencyString
getLegId()
The Id of the legString
getSettlementDate()
Returns the settlement dateString
getStartDate()
Tenor
getStartTenor()
BlockSwapType
getSwapType()
Returns the swap typeTenor
getTenor()
Returns the tenorString
getTermCurrency()
Returns the term currencyString
getTradingType()
Returns the trading typeboolean
isNetted()
Whether or not this block trade leg is netted.String
toString()
Returns the BlockTrade leg as a String
-
-
-
Constructor Detail
-
BlockTradeLeg
public BlockTradeLeg(com.caplin.trading.Trade trade, String legId, LegType legType, String tradingType, BlockSwapType swapType)
Instantiates a BlockTrade leg.- Parameters:
trade
- the generic tradelegId
- the leg idlegType
- the leg type (NEAR or FAR)tradingType
- the trading type (FWD, SPOT, SWAP or TIME_OPTION)swapType
- the swap type (SPOTFWD or FWDFWD)
-
-
Method Detail
-
isNetted
public boolean isNetted()
Whether or not this block trade leg is netted.- Returns:
true
if this is a netted leg,false
otherwise.
-
getBuySell
public BuySell getBuySell()
Returns theBuySell
direction of this leg.- Returns:
- The
BuySell
direction of this leg.
-
getTenor
public Tenor getTenor()
Returns the tenor- Returns:
- the tenor
-
getStartTenor
public Tenor getStartTenor()
-
getStartDate
public String getStartDate()
-
getSettlementDate
public String getSettlementDate()
Returns the settlement date- Returns:
- the settlement date
-
getAmount
public String getAmount()
Returns the amount- Returns:
- the amount
-
getTradingType
public String getTradingType()
Returns the trading type- Returns:
- the trading type
-
getSwapType
public BlockSwapType getSwapType()
Returns the swap type- Returns:
- the swap type
-
getAccount
public Account getAccount()
Returns the account- Returns:
- the account
-
getCurrencyPair
public String getCurrencyPair()
Returns the currency pair- Returns:
- the currency pair
-
getBaseCurrency
public String getBaseCurrency()
Returns the base currency- Returns:
- the base currency
-
getTermCurrency
public String getTermCurrency()
Returns the term currency- Returns:
- the term currency
-
getDealtCurrency
public String getDealtCurrency()
Returns the dealt currency- Returns:
- the dealt currency
-
toString
public String toString()
Returns the BlockTrade leg as a String
-
getLegId
public String getLegId()
The Id of the leg- Returns:
- The Id of the leg
-
-