Class BlockTradeLegConfirmation
- java.lang.Object
-
- com.caplin.motif.fx.trading.block.event.BlockTradeLegConfirmation
-
public class BlockTradeLegConfirmation extends Object
Contains the details of a successfully executed leg in a Block Trade
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(String fieldName, String value)
Adds a field based on it's name and it's valueString
getAccount()
Returns the accountString
getAllInRate()
Returns the allIn rateString
getContraAmount()
Returns the contra amountString
getDealtAmount()
Returns the dealt amountString
getDealtCurrency()
Returns the dealt currencyMap<String,String>
getFields()
Returns all the fieldsString
getFwdPips()
Returns the forward pipsString
getLegId()
Returns the leg idString
getSpotRate()
Returns the spot rateString
toString()
-
-
-
Constructor Detail
-
BlockTradeLegConfirmation
public BlockTradeLegConfirmation(String legId, String allInRate, String spotRate, String forwardPips, String dealtAmount, String contraAmount, String account, String dealtCurrency)
Create a block trade leg confirmation. The leg IDs do not map to those submitted by the client.- Parameters:
legId
- the leg is (it doesn't map to those submitted by the client)allInRate
- the allInRate valuespotRate
- the spotRate valueforwardPips
- the forwardPips valuedealtAmount
- the dealtAmount valuecontraAmount
- the contraAmount valueaccount
- the account valuedealtCurrency
- the dealtCurrency value
-
-
Method Detail
-
addField
public void addField(String fieldName, String value)
Adds a field based on it's name and it's value- Parameters:
fieldName
- the field name is used as a key in the mapvalue
- the value of the field
-
getDealtAmount
public String getDealtAmount()
Returns the dealt amount- Returns:
- the dealt amount
-
getContraAmount
public String getContraAmount()
Returns the contra amount- Returns:
- the contra amount
-
getAccount
public String getAccount()
Returns the account- Returns:
- the account
-
getAllInRate
public String getAllInRate()
Returns the allIn rate- Returns:
- the allIn rate
-
getFwdPips
public String getFwdPips()
Returns the forward pips- Returns:
- the forward pips
-
getSpotRate
public String getSpotRate()
Returns the spot rate- Returns:
- the spot rate
-
getLegId
public String getLegId()
Returns the leg id- Returns:
- the leg id
-
getDealtCurrency
public String getDealtCurrency()
Returns the dealt currency- Returns:
- the dealt currency
-
-