Class BlockTradeLegConfirmation


  • public class BlockTradeLegConfirmation
    extends Object
    Contains the details of a successfully executed leg in a Block Trade
    • 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 value
        spotRate - the spotRate value
        forwardPips - the forwardPips value
        dealtAmount - the dealtAmount value
        contraAmount - the contraAmount value
        account - the account value
        dealtCurrency - 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 map
        value - 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
      • getFields

        public Map<String,​String> getFields()
        Returns all the fields
        Returns:
        the fields