public class BlockTradeLeg extends Object
Constructor and Description |
---|
BlockTradeLeg(com.caplin.trading.Trade trade,
String legId,
LegType legType,
String tradingType,
BlockSwapType swapType)
Instantiates a BlockTrade leg.
|
Modifier and Type | Method and Description |
---|---|
Account |
getAccount()
Returns the account
|
String |
getAmount()
Returns the amount
|
String |
getBaseCurrency()
Returns the base currency
|
BuySell |
getBuySell()
Returns the
BuySell direction of this leg. |
String |
getCurrencyPair()
Returns the currency pair
|
String |
getCustomField(String fieldName)
Returns a field not provided by the getters that was set on the trade.
|
String |
getDealtCurrency()
Returns the dealt currency
|
String |
getLegId()
The Id of the leg
|
String |
getSettlementDate()
Returns the settlement date
|
String |
getStartDate() |
Tenor |
getStartTenor() |
BlockSwapType |
getSwapType()
Returns the swap type
|
Tenor |
getTenor()
Returns the tenor
|
String |
getTermCurrency()
Returns the term currency
|
String |
getTradingType()
Returns the trading type
|
boolean |
isNetted()
Whether or not this block trade leg is netted.
|
String |
toString()
Returns the BlockTrade leg as a String
|
public BlockTradeLeg(com.caplin.trading.Trade trade, String legId, LegType legType, String tradingType, BlockSwapType swapType)
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)public boolean isNetted()
true
if this is a netted leg, false
otherwise.public BuySell getBuySell()
BuySell
direction of this leg.BuySell
direction of this leg.public Tenor getTenor()
public Tenor getStartTenor()
public String getStartDate()
public String getSettlementDate()
public String getAmount()
public String getTradingType()
public BlockSwapType getSwapType()
public Account getAccount()
public String getCurrencyPair()
public String getBaseCurrency()
public String getTermCurrency()
public String getDealtCurrency()
public String toString()
public String getLegId()
Copyright © 2020 Caplin Systems.