public class BlockTradeLegConfirmation extends Object
Constructor and Description |
---|
BlockTradeLegConfirmation(String legId,
String allInRate,
String spotRate,
String forwardPips,
String dealtAmount,
String contraAmount,
String account,
String dealtCurrency)
Create a block trade leg confirmation.
|
Modifier and Type | Method and Description |
---|---|
void |
addField(String fieldName,
String value)
Adds a field based on it's name and it's value
|
String |
getAccount()
Returns the account
|
String |
getAllInRate()
Returns the allIn rate
|
String |
getContraAmount()
Returns the contra amount
|
String |
getDealtAmount()
Returns the dealt amount
|
String |
getDealtCurrency()
Returns the dealt currency
|
Map<String,String> |
getFields()
Returns all the fields
|
String |
getFwdPips()
Returns the forward pips
|
String |
getLegId()
Returns the leg id
|
String |
getSpotRate()
Returns the spot rate
|
String |
toString() |
public BlockTradeLegConfirmation(String legId, String allInRate, String spotRate, String forwardPips, String dealtAmount, String contraAmount, String account, String dealtCurrency)
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 valuepublic void addField(String fieldName, String value)
fieldName
- the field name is used as a key in the mapvalue
- the value of the fieldpublic String getDealtAmount()
public String getContraAmount()
public String getAccount()
public String getAllInRate()
public String getFwdPips()
public String getSpotRate()
public String getLegId()
public String getDealtCurrency()
Copyright © 2015 Caplin Systems.