Class CreateLimitSellOrderInput.Builder
-
- All Implemented Interfaces:
public final class CreateLimitSellOrderInput.BuilderA builder for CreateLimitSellOrderInput.
-
-
Method Summary
-
-
Method Detail
-
assetQuantity
final CreateLimitSellOrderInput.Builder assetQuantity(Double assetQuantity)
Amount of dShare asset involved. Required for limit
Ordersand market sellOrders.
-
assetQuantity
final CreateLimitSellOrderInput.Builder assetQuantity(JsonField<Double> assetQuantity)
Sets Builder.assetQuantity to an arbitrary JSON value.
You should usually call Builder.assetQuantity with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
limitPrice
final CreateLimitSellOrderInput.Builder limitPrice(Double limitPrice)
Price at which to execute the order. Must be a positive number with a precision of up to 2 decimal places.
-
limitPrice
final CreateLimitSellOrderInput.Builder limitPrice(JsonField<Double> limitPrice)
Sets Builder.limitPrice to an arbitrary JSON value.
You should usually call Builder.limitPrice with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stockId
final CreateLimitSellOrderInput.Builder stockId(String stockId)
ID of
Stock.
-
stockId
final CreateLimitSellOrderInput.Builder stockId(JsonField<String> stockId)
Sets Builder.stockId to an arbitrary JSON value.
You should usually call Builder.stockId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
clientOrderId
final CreateLimitSellOrderInput.Builder clientOrderId(String clientOrderId)
Customer-supplied ID to map this order to an order in their own systems. Must be unique within the entity.
-
clientOrderId
final CreateLimitSellOrderInput.Builder clientOrderId(Optional<String> clientOrderId)
Alias for calling Builder.clientOrderId with
clientOrderId.orElse(null).
-
clientOrderId
final CreateLimitSellOrderInput.Builder clientOrderId(JsonField<String> clientOrderId)
Sets Builder.clientOrderId to an arbitrary JSON value.
You should usually call Builder.clientOrderId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
paymentTokenAddress
final CreateLimitSellOrderInput.Builder paymentTokenAddress(String paymentTokenAddress)
Address of the payment token to be used for the sell order. If not provided, the default payment token (USD+) will be used. Should only be specified if
recipient_account_idfor a non-managed wallet account is also provided.
-
paymentTokenAddress
final CreateLimitSellOrderInput.Builder paymentTokenAddress(Optional<String> paymentTokenAddress)
Alias for calling Builder.paymentTokenAddress with
paymentTokenAddress.orElse(null).
-
paymentTokenAddress
final CreateLimitSellOrderInput.Builder paymentTokenAddress(JsonField<String> paymentTokenAddress)
Sets Builder.paymentTokenAddress to an arbitrary JSON value.
You should usually call Builder.paymentTokenAddress with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recipientAccountId
final CreateLimitSellOrderInput.Builder recipientAccountId(String recipientAccountId)
ID of
Accountto receive theOrder.
-
recipientAccountId
final CreateLimitSellOrderInput.Builder recipientAccountId(Optional<String> recipientAccountId)
Alias for calling Builder.recipientAccountId with
recipientAccountId.orElse(null).
-
recipientAccountId
final CreateLimitSellOrderInput.Builder recipientAccountId(JsonField<String> recipientAccountId)
Sets Builder.recipientAccountId to an arbitrary JSON value.
You should usually call Builder.recipientAccountId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final CreateLimitSellOrderInput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CreateLimitSellOrderInput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CreateLimitSellOrderInput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CreateLimitSellOrderInput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CreateLimitSellOrderInput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CreateLimitSellOrderInput build()
Returns an immutable instance of CreateLimitSellOrderInput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.assetQuantity() .limitPrice() .stockId()
-
-
-
-