Class 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 value
      java.lang.String getAccount()
      Returns the account
      java.lang.String getAllInRate()
      Returns the allIn rate
      java.lang.String getContraAmount()
      Returns the contra amount
      java.lang.String getDealtAmount()
      Returns the dealt amount
      java.lang.String getDealtCurrency()
      Returns the dealt currency
      java.util.Map<java.lang.String,​java.lang.String> getFields()
      Returns all the fields
      java.lang.String getFwdPips()
      Returns the forward pips
      java.lang.String getLegId()
      Returns the leg id
      java.lang.String getSpotRate()
      Returns the spot rate
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 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​(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 map
        value - 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 class java.lang.Object