Interface SecuritizedProductPortfolioItem<P extends SecuritizedProduct>

    • Method Detail

      • getProduct

        P getProduct()
        Gets the product of the security that was traded.
        Returns:
        the product
      • getCurrency

        default Currency getCurrency()
        Gets the currency of the position.

        This is typically the same as the currency of the product.

        Returns:
        the trading currency
      • getSecurityId

        default SecurityId getSecurityId()
        Description copied from interface: SecurityQuantity
        Gets the security identifier.

        This identifier uniquely identifies the security within the system.

        Specified by:
        getSecurityId in interface SecurityQuantity
        Returns:
        the security identifier
      • withQuantity

        SecuritizedProductPortfolioItem<P> withQuantity​(double quantity)
        Returns an instance with the specified quantity.
        Parameters:
        quantity - the new quantity
        Returns:
        the instance with the specified quantity