Package com.longbridge.trade
Class ReplaceOrderOptions
- java.lang.Object
-
- com.longbridge.trade.ReplaceOrderOptions
-
public class ReplaceOrderOptions extends Object
Options for replacing an order
-
-
Constructor Summary
Constructors Constructor Description ReplaceOrderOptions(String orderId, BigDecimal quantity)Constructs options for replacing an order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplaceOrderOptionssetLimitDepthLevel(Integer limitDepthLevel)Sets the new limit depth level.ReplaceOrderOptionssetLimitOffset(BigDecimal limitOffset)Sets the new limit offset.ReplaceOrderOptionssetMonitorPrice(BigDecimal monitorPrice)Sets the new monitor price.ReplaceOrderOptionssetPrice(BigDecimal price)Sets the new order price.ReplaceOrderOptionssetRemark(String remark)Sets the order remark.ReplaceOrderOptionssetTrailingAmount(BigDecimal trailingAmount)Sets the new trailing amount.ReplaceOrderOptionssetTrailingPercent(BigDecimal trailingPercent)Sets the new trailing percentage.ReplaceOrderOptionssetTriggerCount(Integer triggerCount)Sets the new trigger count.ReplaceOrderOptionssetTriggerPrice(BigDecimal triggerPrice)Sets the new trigger price.
-
-
-
Constructor Detail
-
ReplaceOrderOptions
public ReplaceOrderOptions(String orderId, BigDecimal quantity)
Constructs options for replacing an order.- Parameters:
orderId- the ID of the order to replacequantity- 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
-
-