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
      • withInfo

        SecurityQuantityTrade withInfo​(TradeInfo info)
        Returns an instance with the specified info.
        Specified by:
        withInfo in interface Trade
        Parameters:
        info - the new info
        Returns:
        the instance with the specified info
      • 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