Class ResolvedFxVanillaOptionTrade

  • All Implemented Interfaces:
    ResolvedTrade,, Bean, ImmutableBean

    public final class ResolvedFxVanillaOptionTrade
    extends java.lang.Object
    implements ResolvedTrade, ImmutableBean,
    A trade in a vanilla FX option, resolved for pricing.

    This is the resolved form of FxVanillaOptionTrade and is the primary input to the pricers. Applications will typically create a ResolvedFxVanillaOptionTrade from a FxVanillaOptionTrade using FxVanillaOptionTrade.resolve(ReferenceData).

    A ResolvedFxVanillaOptionTrade is bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.

    See Also:
    Serialized Form
    • 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 ResolvedTrade
        the value of the property, not null
      • getProduct

        public ResolvedFxVanillaOption getProduct()
        Gets the resolved vanilla FX option product.

        The product captures the contracted financial details of the trade.

        Specified by:
        getProduct in interface ResolvedTrade
        the value of the property, not null
      • getPremium

        public Payment 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
      • 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