Class FxSingleBarrierOptionTrade

    • Method Detail

      • getInfo

        public TradeInfo getInfo()
        Gets the additional trade information, defaulted to an empty instance.

        This allows additional information to be attached to the trade.

        Specified by:
        getInfo in interface PortfolioItem
        Specified by:
        getInfo in interface Trade
        Returns:
        the value of the property, not null
      • getProduct

        public FxSingleBarrierOption getProduct()
        Gets the FX option product that was agreed when the trade occurred.

        The product captures the contracted financial details of the trade.

        Specified by:
        getProduct in interface FxTrade
        Specified by:
        getProduct in interface ProductTrade
        Returns:
        the value of the property, not null
      • getPremium

        public AdjustablePayment getPremium()
        Gets the premium of the FX option.

        The premium sign should be compatible with the product Long/Short flag. This means that the premium is negative for long and positive for short.

        Returns:
        the value of the property, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object