Class ReplaceOrderOptions


  • public class ReplaceOrderOptions
    extends Object
    Options for replacing an order
    • Constructor Detail

      • ReplaceOrderOptions

        public ReplaceOrderOptions​(String orderId,
                                   BigDecimal quantity)
        Constructs options for replacing an order.
        Parameters:
        orderId - the ID of the order to replace
        quantity - new order quantity
    • Method Detail

      • setPrice

        public ReplaceOrderOptions setPrice​(BigDecimal price)
        Sets the new order price.
        Parameters:
        price - new order price
        Returns:
        this instance for chaining
      • setTriggerPrice

        public ReplaceOrderOptions setTriggerPrice​(BigDecimal triggerPrice)
        Sets the new trigger price.
        Parameters:
        triggerPrice - new trigger price
        Returns:
        this instance for chaining
      • setLimitOffset

        public ReplaceOrderOptions setLimitOffset​(BigDecimal limitOffset)
        Sets the new limit offset.
        Parameters:
        limitOffset - new limit offset
        Returns:
        this instance for chaining
      • setTrailingAmount

        public ReplaceOrderOptions setTrailingAmount​(BigDecimal trailingAmount)
        Sets the new trailing amount.
        Parameters:
        trailingAmount - new trailing amount
        Returns:
        this instance for chaining
      • setTrailingPercent

        public ReplaceOrderOptions setTrailingPercent​(BigDecimal trailingPercent)
        Sets the new trailing percentage.
        Parameters:
        trailingPercent - new trailing percentage
        Returns:
        this instance for chaining
      • setLimitDepthLevel

        public ReplaceOrderOptions setLimitDepthLevel​(Integer limitDepthLevel)
        Sets the new limit depth level.
        Parameters:
        limitDepthLevel - new limit depth level
        Returns:
        this instance for chaining
      • setTriggerCount

        public ReplaceOrderOptions setTriggerCount​(Integer triggerCount)
        Sets the new trigger count.
        Parameters:
        triggerCount - new trigger count
        Returns:
        this instance for chaining
      • setMonitorPrice

        public ReplaceOrderOptions setMonitorPrice​(BigDecimal monitorPrice)
        Sets the new monitor price.
        Parameters:
        monitorPrice - new monitor price
        Returns:
        this instance for chaining
      • setRemark

        public ReplaceOrderOptions setRemark​(String remark)
        Sets the order remark.
        Parameters:
        remark - remark
        Returns:
        this instance for chaining