Class GridTrigger

    • Method Detail

      • percent

        public static GridTrigger percent​(BigDecimal up,
                                          BigDecimal down)
        Trigger by percent.
        Parameters:
        up - upward trigger percent
        down - downward trigger percent
        Returns:
        a percent trigger
      • spread

        public static GridTrigger spread​(BigDecimal up,
                                         BigDecimal down)
        Trigger by absolute price spread.
        Parameters:
        up - upward trigger spread
        down - downward trigger spread
        Returns:
        a spread trigger
      • getType

        public TriggerPriceType getType()
        Returns the trigger price type (percent or spread).
        Returns:
        the trigger price type
      • getUp

        public BigDecimal getUp()
        Returns the upward threshold.
        Returns:
        upward threshold
      • getDown

        public BigDecimal getDown()
        Returns the downward threshold.
        Returns:
        downward threshold