public abstract class FXTradeLeg extends Object
FXExecution.getNearLeg()
,
FXExecution.getFarLeg()
Modifier and Type | Field and Description |
---|---|
protected String |
legId |
protected com.caplin.trading.Trade |
trade |
Constructor and Description |
---|
FXTradeLeg(com.caplin.trading.Trade trade,
String legId)
Constructs the FXTradeLeg which wraps around the underlying trading
datasource trade object and provides basic convenience methods to obtain
information about the trade.
|
Modifier and Type | Method and Description |
---|---|
abstract Account |
getAccount()
Returns the account that this trade should be booked against.
|
abstract String |
getAmount()
Returns the amount at which the leg should be executed.
|
abstract String |
getBaseCurrency()
Returns the base currency of the currency pair.
|
abstract 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.
|
abstract String |
getCurrencyPair()
Returns the currency pair that this trade should be executed against.
|
String |
getCustomField(String fieldName)
Returns a field not provided by the getters that was set on the trade.
|
abstract String |
getDealtCurrency()
Returns the currency that the amount denominates.
|
abstract 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 |
getLegId()
The Id of the leg
|
abstract String |
getSettlementDate()
Returns the settlement date at which the leg should be executed.
|
abstract String |
getStartDate()
Returns the start date for a time option.
|
abstract Tenor |
getStartTenor()
Returns the tenor at which the start date for a time option should be
submitted against.
|
abstract 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).
|
abstract Tenor |
getTenor()
Returns the tenor at which the leg should be executed.
|
abstract String |
getTermCurrency()
Returns the term currency of the currency pair.
|
abstract FXTradingType |
getTradingType()
Returns the type of trade that should be executed.
|
String |
toString() |
protected final String legId
protected final com.caplin.trading.Trade trade
public FXTradeLeg(com.caplin.trading.Trade trade, String legId)
trade
- The underlying trading datasource trade object.legId
- The leg of the trade this object will refer to.public String getLegId()
public String getCustomField(String fieldName)
fieldName
- The name of the custom fieldpublic abstract Tenor getStartTenor()
Tenor._BROKEN
will be returned.
In this case, you should retrieve the settlement date from
getStartDate()
.public abstract String getStartDate()
public abstract String getAmount()
FXExecution.getDealtCurrency()
public abstract FXTradingType getTradingType()
public abstract FXSwapType getSwapType()
public abstract Account getAccount()
public abstract Tenor getTenor()
Tenor._BROKEN
will be returned.
In this case, you should retrieve the settlement date from
getSettlementDate()
.public abstract String getSettlementDate()
Tenor._BROKEN
. In the case
where the tenor is not broken, this will return the settlement date of the
tenor.public abstract String getCurrencyPair()
public abstract String getBaseCurrency()
public abstract String getTermCurrency()
public abstract String getDealtCurrency()
public abstract String getFixingDate()
public abstract String getCaption()
Copyright © 2015 Caplin Systems.