Class BlockTradeLegConfirmation
- java.lang.Object
-
- com.caplin.motif.fx.trading.block.event.BlockTradeLegConfirmation
-
public class BlockTradeLegConfirmation extends java.lang.Object
Contains the details of a successfully executed leg in a Block Trade
-
-
Constructor Summary
Constructors Constructor Description BlockTradeLegConfirmation(java.lang.String legId, java.lang.String allInRate, java.lang.String spotRate, java.lang.String forwardPips, java.lang.String dealtAmount, java.lang.String contraAmount, java.lang.String account, java.lang.String dealtCurrency)
Create a block trade leg confirmation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(java.lang.String fieldName, java.lang.String value)
Adds a field based on it's name and it's valuejava.lang.String
getAccount()
Returns the accountjava.lang.String
getAllInRate()
Returns the allIn ratejava.lang.String
getContraAmount()
Returns the contra amountjava.lang.String
getDealtAmount()
Returns the dealt amountjava.lang.String
getDealtCurrency()
Returns the dealt currencyjava.util.Map<java.lang.String,java.lang.String>
getFields()
Returns all the fieldsjava.lang.String
getFwdPips()
Returns the forward pipsjava.lang.String
getLegId()
Returns the leg idjava.lang.String
getSpotRate()
Returns the spot ratejava.lang.String
toString()
-
-
-
Constructor Detail
-
BlockTradeLegConfirmation
public BlockTradeLegConfirmation(java.lang.String legId, java.lang.String allInRate, java.lang.String spotRate, java.lang.String forwardPips, java.lang.String dealtAmount, java.lang.String contraAmount, java.lang.String account, java.lang.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(java.lang.String fieldName, java.lang.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 java.lang.String getDealtAmount()
Returns the dealt amount- Returns:
- the dealt amount
-
getContraAmount
public java.lang.String getContraAmount()
Returns the contra amount- Returns:
- the contra amount
-
getAccount
public java.lang.String getAccount()
Returns the account- Returns:
- the account
-
getAllInRate
public java.lang.String getAllInRate()
Returns the allIn rate- Returns:
- the allIn rate
-
getFwdPips
public java.lang.String getFwdPips()
Returns the forward pips- Returns:
- the forward pips
-
getSpotRate
public java.lang.String getSpotRate()
Returns the spot rate- Returns:
- the spot rate
-
getLegId
public java.lang.String getLegId()
Returns the leg id- Returns:
- the leg id
-
getDealtCurrency
public java.lang.String getDealtCurrency()
Returns the dealt currency- Returns:
- the dealt currency
-
getFields
public java.util.Map<java.lang.String,java.lang.String> getFields()
Returns all the fields- Returns:
- the fields
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-