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