Package com.longbridge.trade
Class EstimateMaxPurchaseQuantityOptions
- java.lang.Object
-
- com.longbridge.trade.EstimateMaxPurchaseQuantityOptions
-
public class EstimateMaxPurchaseQuantityOptions extends Object
Options for estimating the maximum purchase quantity
-
-
Constructor Summary
Constructors Constructor Description EstimateMaxPurchaseQuantityOptions(String symbol, OrderType orderType, OrderSide side)Constructs options for estimating the maximum purchase quantity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EstimateMaxPurchaseQuantityOptionsfractionalShares()Enables fractional shares estimation.EstimateMaxPurchaseQuantityOptionssetCurrency(String currency)Sets the settlement currency.EstimateMaxPurchaseQuantityOptionssetOrderId(String orderId)Sets the order ID (for replacement orders).EstimateMaxPurchaseQuantityOptionssetPrice(BigDecimal price)Sets the order price.
-
-
-
Method Detail
-
setPrice
public EstimateMaxPurchaseQuantityOptions setPrice(BigDecimal price)
Sets the order price.- Parameters:
price- order price- Returns:
- this instance for chaining
-
setCurrency
public EstimateMaxPurchaseQuantityOptions setCurrency(String currency)
Sets the settlement currency.- Parameters:
currency- settlement currency- Returns:
- this instance for chaining
-
setOrderId
public EstimateMaxPurchaseQuantityOptions setOrderId(String orderId)
Sets the order ID (for replacement orders).- Parameters:
orderId- order ID- Returns:
- this instance for chaining
-
fractionalShares
public EstimateMaxPurchaseQuantityOptions fractionalShares()
Enables fractional shares estimation.- Returns:
- this instance for chaining
-
-