Class CreateMarketSellOrderInput.Builder
-
- All Implemented Interfaces:
public final class CreateMarketSellOrderInput.BuilderA builder for CreateMarketSellOrderInput.
-
-
Method Summary
-
-
Method Detail
-
assetQuantity
final CreateMarketSellOrderInput.Builder assetQuantity(Double assetQuantity)
Quantity of shares to trade. Must be a positive number with a precision of up to 6 decimal places.
-
assetQuantity
final CreateMarketSellOrderInput.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.
-
alloyId
final CreateMarketSellOrderInput.Builder alloyId(String alloyId)
ID of
Alloy.
-
alloyId
final CreateMarketSellOrderInput.Builder alloyId(Optional<String> alloyId)
Alias for calling Builder.alloyId with
alloyId.orElse(null).
-
alloyId
final CreateMarketSellOrderInput.Builder alloyId(JsonField<String> alloyId)
Sets Builder.alloyId to an arbitrary JSON value.
You should usually call Builder.alloyId 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 CreateMarketSellOrderInput.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 CreateMarketSellOrderInput.Builder clientOrderId(Optional<String> clientOrderId)
Alias for calling Builder.clientOrderId with
clientOrderId.orElse(null).
-
clientOrderId
final CreateMarketSellOrderInput.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 CreateMarketSellOrderInput.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 CreateMarketSellOrderInput.Builder paymentTokenAddress(Optional<String> paymentTokenAddress)
Alias for calling Builder.paymentTokenAddress with
paymentTokenAddress.orElse(null).
-
paymentTokenAddress
final CreateMarketSellOrderInput.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 CreateMarketSellOrderInput.Builder recipientAccountId(String recipientAccountId)
ID of
Accountto receive theOrder.
-
recipientAccountId
final CreateMarketSellOrderInput.Builder recipientAccountId(Optional<String> recipientAccountId)
Alias for calling Builder.recipientAccountId with
recipientAccountId.orElse(null).
-
recipientAccountId
final CreateMarketSellOrderInput.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.
-
stockId
final CreateMarketSellOrderInput.Builder stockId(String stockId)
ID of
Stock.
-
stockId
final CreateMarketSellOrderInput.Builder stockId(Optional<String> stockId)
Alias for calling Builder.stockId with
stockId.orElse(null).
-
stockId
final CreateMarketSellOrderInput.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.
-
additionalProperties
final CreateMarketSellOrderInput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CreateMarketSellOrderInput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CreateMarketSellOrderInput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CreateMarketSellOrderInput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CreateMarketSellOrderInput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CreateMarketSellOrderInput build()
Returns an immutable instance of CreateMarketSellOrderInput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.assetQuantity()
-
-
-
-