Class BlockTradeLegConfirmation
java.lang.Object
com.caplin.motif.fx.trading.block.event.BlockTradeLegConfirmation
Contains the details of a successfully executed leg in a Block Trade
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a field based on it's name and it's valueReturns the accountReturns the allIn rateReturns the contra amountReturns the dealt amountReturns the dealt currencyReturns all the fieldsReturns the forward pipsgetLegId()
Returns the leg idReturns the spot ratetoString()
-
Constructor Details
-
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 Details
-
addField
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
Returns the dealt amount- Returns:
- the dealt amount
-
getContraAmount
Returns the contra amount- Returns:
- the contra amount
-
getAccount
Returns the account- Returns:
- the account
-
getAllInRate
Returns the allIn rate- Returns:
- the allIn rate
-
getFwdPips
Returns the forward pips- Returns:
- the forward pips
-
getSpotRate
Returns the spot rate- Returns:
- the spot rate
-
getLegId
Returns the leg id- Returns:
- the leg id
-
getDealtCurrency
Returns the dealt currency- Returns:
- the dealt currency
-
getFields
Returns all the fields- Returns:
- the fields
-
toString
-