public class FXExecutionTradeLeg extends FXTradeLeg
Implementation of an FXTradeLeg.
Represents a leg within an FX Trade.
FXExecution.getNearLeg()
,
FXExecution.getFarLeg()
legId, trade
Constructor and Description |
---|
FXExecutionTradeLeg(com.caplin.trading.Trade trade,
String legId,
FXTradingType tradingType,
FXSwapType swapType)
Constructs the FXExecutionTradeLeg which wraps around the trade
object and provides convenience methods to obtain fields pertaining to
the trade legs, as well as methods to send trade messages.
|
Modifier and Type | Method and Description |
---|---|
Account |
getAccount()
Returns the account that this trade should be booked against.
|
String |
getAmount()
Returns the amount at which the leg should be executed.
|
String |
getBaseCurrency()
Returns the base currency of the currency pair.
|
BuySell |
getBuySell()
Returns the
BuySell direction of this leg or null if it
has not been defined at this point. |
String |
getCaption()
Returns the NDF text attached to the quote being executed, this is an
additional piece of text that is found on an quote that is for an
NDF currency pair, for when executing a Non Deliverable Forward.
|
String |
getCurrencyPair()
Returns the currency pair that this trade should be executed against.
|
String |
getDealtCurrency()
Returns the currency that the amount denominates.
|
String |
getFixingDate()
Returns the fixing date, this is an additional date to the settlement
date, when executing a Non Deliverable Forward, this is usually two
business days before the settlement date.
|
String |
getRiskDate() |
String |
getRiskTenor() |
String |
getSettlementDate()
Returns the settlement date at which the leg should be executed.
|
String |
getStartDate()
Returns the start date for a time option.
|
Tenor |
getStartTenor()
Returns the tenor at which the start date for a time option should be
submitted against.
|
FXSwapType |
getSwapType()
If the submitted trade is a swap trade, this method will return the swap
type (either Spot Fwd Swap or Fwd Fwd Swap).
|
Tenor |
getTenor()
Returns the tenor at which the leg should be executed.
|
String |
getTermCurrency()
Returns the term currency of the currency pair.
|
FXTradingType |
getTradingType()
Returns the type of trade that should be executed.
|
String |
toString() |
getCustomField, getLegId
public FXExecutionTradeLeg(com.caplin.trading.Trade trade, String legId, FXTradingType tradingType, FXSwapType swapType)
trade
- The underlying trading datasource trade object.legId
- The id of the trade leg.tradingType
- The trading type.swapType
- The swap type.public BuySell getBuySell()
BuySell
direction of this leg or null
if it
has not been defined at this point.BuySell
direction of this leg or null
if it
has not been defined.public String getAmount()
FXTradeLeg
getAmount
in class FXTradeLeg
FXExecution.getDealtCurrency()
public FXTradingType getTradingType()
FXTradeLeg
getTradingType
in class FXTradeLeg
public FXSwapType getSwapType()
FXTradeLeg
getSwapType
in class FXTradeLeg
public Account getAccount()
FXTradeLeg
getAccount
in class FXTradeLeg
public Tenor getTenor()
FXTradeLeg
Tenor._BROKEN
will be returned.
In this case, you should retrieve the settlement date from
FXTradeLeg.getSettlementDate()
.getTenor
in class FXTradeLeg
public Tenor getStartTenor()
FXTradeLeg
Tenor._BROKEN
will be returned.
In this case, you should retrieve the settlement date from
FXTradeLeg.getStartDate()
.getStartTenor
in class FXTradeLeg
public String getStartDate()
FXTradeLeg
getStartDate
in class FXTradeLeg
public String getSettlementDate()
FXTradeLeg
Tenor._BROKEN
. In the case
where the tenor is not broken, this will return the settlement date of the
tenor.getSettlementDate
in class FXTradeLeg
public String getCurrencyPair()
FXTradeLeg
getCurrencyPair
in class FXTradeLeg
public String getBaseCurrency()
FXTradeLeg
getBaseCurrency
in class FXTradeLeg
public String getTermCurrency()
FXTradeLeg
getTermCurrency
in class FXTradeLeg
public String getDealtCurrency()
FXTradeLeg
getDealtCurrency
in class FXTradeLeg
public String getFixingDate()
FXTradeLeg
getFixingDate
in class FXTradeLeg
public String getCaption()
FXTradeLeg
getCaption
in class FXTradeLeg
public String getRiskDate()
public String getRiskTenor()
public String toString()
toString
in class FXTradeLeg
Copyright © 2015 Caplin Systems.