Class SubmitOrderOptions


  • public class SubmitOrderOptions
    extends Object
    Options for submitting an order
    • Constructor Detail

      • SubmitOrderOptions

        public SubmitOrderOptions​(String symbol,
                                  OrderType orderType,
                                  OrderSide side,
                                  BigDecimal submittedQuantity,
                                  TimeInForceType timeInForce)
        Constructs options for submitting an order.
        Parameters:
        symbol - security symbol
        orderType - order type
        side - order side
        submittedQuantity - order quantity
        timeInForce - time-in-force type
    • Method Detail

      • setSubmittedPrice

        public SubmitOrderOptions setSubmittedPrice​(BigDecimal submittedPrice)
        Sets the submitted price.
        Parameters:
        submittedPrice - submitted price
        Returns:
        this instance for chaining
      • setTriggerPrice

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

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

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

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

        public SubmitOrderOptions setExpireDate​(LocalDate expireDate)
        Sets the expiry date (for GoodTilDate orders).
        Parameters:
        expireDate - expiry date
        Returns:
        this instance for chaining
      • setOutsideRth

        public SubmitOrderOptions setOutsideRth​(OutsideRTH outsideRth)
        Sets the outside regular trading hours setting.
        Parameters:
        outsideRth - outside-RTH setting
        Returns:
        this instance for chaining
      • setLimitDepthLevel

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

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

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

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