Interface SecurityQuantityTrade

    • Method Detail

      • getPrice

        double getPrice()
        Gets the price that was traded.

        This is the unit price agreed when the trade occurred.

        Returns:
        the price
      • withQuantity

        SecurityQuantityTrade withQuantity​(double quantity)
        Returns an instance with the specified quantity.
        Parameters:
        quantity - the new quantity
        Returns:
        the instance with the specified quantity
      • withPrice

        SecurityQuantityTrade withPrice​(double price)
        Returns an instance with the specified price.
        Parameters:
        price - the new price
        Returns:
        the instance with the specified price