Class SimpleOrderSendParameters

java.lang.Object
velox.api.layer1.data.SingleOrderSendParameters
velox.api.layer1.data.SimpleOrderSendParameters
All Implemented Interfaces:
MultiAccountAware, OrderSendParameters

public class SimpleOrderSendParameters extends SingleOrderSendParameters
Simple order. (market, stop, limit or stop-limit)
  • Field Details

    • limitPrice

      public final double limitPrice
      Limit price for limit and stop-limit orders, NaN for market orders
    • stopPrice

      public final double stopPrice
      Stop price for stop and stop-limit orders, NaN for market and limit orders
    • takeProfitOffset

      public final int takeProfitOffset
      Offset for take profit order (for brackets). 0 if not needed. If additionalTakeProfitTiers contains any tiers, this defines the first tier (size will be whatever remains after the additionalTakeProfitTiers).
    • additionalTakeProfitTiers

      public final List<BracketTier> additionalTakeProfitTiers
      If not empty - describes take profit tiers of the bracket after the first (which is described by takeProfitOffset).
    • stopLossOffset

      public final int stopLossOffset
      Offset for stop loss order (for brackets). 0 if not needed. If additionalStopLossTiers contains any tiers, this defines the first tier (size will be whatever remains after the additionalStopLossTiers).
    • stopLossTrailingStep

      public final int stopLossTrailingStep
      Stop loss trailing step. 0 for non-trailing stop loss.
    • additionalStopLossTiers

      public final List<BracketTier> additionalStopLossTiers
      If not empty - describes stop loss tiers of the bracket after the first (which is described by stopLossOffset).
    • takeProfitClientId

      public final String takeProfitClientId
      Client id for take profit order, similar too SingleOrderSendParameters.clientId
    • stopLossClientId

      public final String stopLossClientId
      Client id for stop loss order, similar too SingleOrderSendParameters.clientId
    • trailingStep

      public final int trailingStep
      Trailing step for this order, if it's a stop order. 0 for non-trailing orders
    • doNotIncrease

      public final boolean doNotIncrease
      Do non increase flag - if set it should not be possible to increase order size. Handled inside Bookmap L1 stack, no need to worry about it when writing L0 provider.
    • reversingPositionHint

      public final boolean reversingPositionHint
      Indicates that intention is to reverse position. Some platforms might provide you a better way to do it, in which case you can use that instead. Provider is not required to support this.
    • closingPositionHint

      public final boolean closingPositionHint
      Indicates that intention is to close position. Some platforms might provide you a better way to do it, in which case you can use that instead. Provider is not required to support this.
    • stopLossLimitOffset

      public final Integer stopLossLimitOffset
      For providers where stop loss order is an OrderType.STP_LMT, this defines limit offset of such order. Ignored otherwise.
    • sizeMultiplier

      @Deprecated public double sizeMultiplier
      Deprecated.
      Was added by mistake. Please don't use it. Kept for compatibility to avoid introducing new API version.
  • Constructor Details

    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, double limitPrice, double stopPrice)
      Deprecated.
      Don't use this directly - use SimpleOrderSendParametersBuilder instead.
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, int trailingStep, double limitPrice, double stopPrice)
      Deprecated.
      Don't use this directly - use SimpleOrderSendParametersBuilder instead.
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, double limitPrice, double stopPrice, int takeProfitOffset, int stopLossOffset, int stopLossTrailingStep, int trailingStep, boolean doNotIncrease)
      Deprecated.
      Don't use this directly - use SimpleOrderSendParametersBuilder instead.
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, double limitPrice, double stopPrice, int takeProfitOffset, int stopLossOffset, int stopLossTrailingStep, int trailingStep, boolean doNotIncrease, Integer stopLossLimitOffset)
      Deprecated.
      Don't use this directly - use SimpleOrderSendParametersBuilder instead.
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, String clientId, double limitPrice, double stopPrice, int takeProfitOffset, int stopLossOffset, int stopLossTrailingStep, int trailingStep, boolean doNotIncrease, boolean reversingPositionHint, boolean closingPositionHint)
      Deprecated.
      Don't use this directly - use SimpleOrderSendParametersBuilder instead.
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, String clientId, double limitPrice, double stopPrice, int takeProfitOffset, int stopLossOffset, int stopLossTrailingStep, int trailingStep, boolean doNotIncrease)
      Deprecated.
      Don't use this directly - use SimpleOrderSendParametersBuilder instead.
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, double limitPrice, double stopPrice, double sizeMultiplier)
      Deprecated.
      sizeMultiplier parameter was added to API due to a mistake, please use a version without it
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, int trailingStep, double limitPrice, double stopPrice, double sizeMultiplier)
      Deprecated.
      sizeMultiplier parameter was added to API due to a mistake, please use a version without it
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, double limitPrice, double stopPrice, int takeProfitOffset, int stopLossOffset, int stopLossTrailingStep, int trailingStep, boolean doNotIncrease, double sizeMultiplier)
      Deprecated.
      sizeMultiplier parameter was added to API due to a mistake, please use a version without it
    • SimpleOrderSendParameters

      @Deprecated public SimpleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, String clientId, double limitPrice, double stopPrice, int takeProfitOffset, int stopLossOffset, int stopLossTrailingStep, int trailingStep, boolean doNotIncrease, double sizeMultiplier)
      Deprecated.
      sizeMultiplier parameter was added to API due to a mistake, please use a version without it
  • Method Details