Class FxVanillaOptionTrade

    • Method Detail

      • meta

        public static FxVanillaOptionTrade.Meta meta()
        The meta-bean for FxVanillaOptionTrade.
        the meta-bean, not null
      • builder

        public static FxVanillaOptionTrade.Builder builder()
        Returns a builder used to create an instance of the bean.
        the builder, not null
      • 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
        the value of the property, not null
      • getProduct

        public FxVanillaOption 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
        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.

        the value of the property, not null
      • toBuilder

        public FxVanillaOptionTrade.Builder toBuilder()
        Returns a builder that allows this bean to be mutated.
        the mutable builder, not null
      • equals

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

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

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