Package com.longbridge.trade
Class SubmitOrderOptions
- java.lang.Object
-
- com.longbridge.trade.SubmitOrderOptions
-
public class SubmitOrderOptions extends Object
Options for submitting an order
-
-
Constructor Summary
Constructors Constructor Description SubmitOrderOptions(String symbol, OrderType orderType, OrderSide side, BigDecimal submittedQuantity, TimeInForceType timeInForce)Constructs options for submitting an order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmitOrderOptionssetExpireDate(LocalDate expireDate)Sets the expiry date (for GoodTilDate orders).SubmitOrderOptionssetLimitDepthLevel(Integer limitDepthLevel)Sets the limit depth level.SubmitOrderOptionssetLimitOffset(BigDecimal limitOffset)Sets the limit offset.SubmitOrderOptionssetMonitorPrice(BigDecimal monitorPrice)Sets the monitor price.SubmitOrderOptionssetOutsideRth(OutsideRTH outsideRth)Sets the outside regular trading hours setting.SubmitOrderOptionssetRemark(String remark)Sets the order remark.SubmitOrderOptionssetSubmittedPrice(BigDecimal submittedPrice)Sets the submitted price.SubmitOrderOptionssetTrailingAmount(BigDecimal trailingAmount)Sets the trailing amount.SubmitOrderOptionssetTrailingPercent(BigDecimal trailingPercent)Sets the trailing percentage.SubmitOrderOptionssetTriggerCount(Integer triggerCount)Sets the trigger count.SubmitOrderOptionssetTriggerPrice(BigDecimal triggerPrice)Sets the trigger price.
-
-
-
Constructor Detail
-
SubmitOrderOptions
public SubmitOrderOptions(String symbol, OrderType orderType, OrderSide side, BigDecimal submittedQuantity, TimeInForceType timeInForce)
Constructs options for submitting an order.- Parameters:
symbol- security symbolorderType- order typeside- order sidesubmittedQuantity- order quantitytimeInForce- 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
-
-