Interface SecurityQuantity

    • Method Detail

      • getSecurityId

        SecurityId getSecurityId()
        Gets the security identifier.

        This identifier uniquely identifies the security within the system.

        Returns:
        the security identifier
      • getQuantity

        double getQuantity()
        Gets the quantity of the security.

        This returns the net quantity of the underlying security. It can be negative if the security is effectively being sold.

        For a trade, the quantity is positive if the security is being bought and negative if being sold. For a position, the quantity is positive if the net position is long and negative if the net position is short.

        Returns:
        the net quantity of the security that is held