Class BlockTradeLeg
java.lang.Object
com.caplin.motif.fx.trading.block.BlockTradeLeg
Represents a trade within an Block Trade
-
Constructor Summary
ConstructorDescriptionBlockTradeLeg
(com.caplin.trading.Trade trade, String legId, LegType legType, String tradingType, BlockSwapType swapType) Instantiates a BlockTrade leg. -
Method Summary
Modifier and TypeMethodDescriptionReturns the accountReturns the amountReturns the base currencyReturns theBuySell
direction of this leg.Returns the currency pairgetCustomField
(String fieldName) Returns a field not provided by the getters that was set on the trade.Returns the dealt currencygetLegId()
The Id of the legReturns the settlement dateReturns the swap typegetTenor()
Returns the tenorReturns the term currencyReturns the trading typeboolean
isNetted()
Whether or not this block trade leg is netted.toString()
Returns the BlockTrade leg as a String
-
Constructor Details
-
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 Details
-
isNetted
public boolean isNetted()Whether or not this block trade leg is netted.- Returns:
true
if this is a netted leg,false
otherwise.
-
getBuySell
Returns theBuySell
direction of this leg.- Returns:
- The
BuySell
direction of this leg.
-
getTenor
Returns the tenor- Returns:
- the tenor
-
getStartTenor
-
getStartDate
-
getSettlementDate
Returns the settlement date- Returns:
- the settlement date
-
getAmount
Returns the amount- Returns:
- the amount
-
getTradingType
Returns the trading type- Returns:
- the trading type
-
getSwapType
Returns the swap type- Returns:
- the swap type
-
getAccount
Returns the account- Returns:
- the account
-
getCurrencyPair
Returns the currency pair- Returns:
- the currency pair
-
getBaseCurrency
Returns the base currency- Returns:
- the base currency
-
getTermCurrency
Returns the term currency- Returns:
- the term currency
-
getDealtCurrency
Returns the dealt currency- Returns:
- the dealt currency
-
toString
Returns the BlockTrade leg as a String -
getLegId
The Id of the leg- Returns:
- The Id of the leg
-
getCustomField
Returns a field not provided by the getters that was set on the trade.- Parameters:
fieldName
- The name of the custom field- Returns:
- The value of the custom field
-