Class OrderRequestCreateMarketBuyParams.Body.Builder
-
- All Implemented Interfaces:
public final class OrderRequestCreateMarketBuyParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
paymentAmount
final OrderRequestCreateMarketBuyParams.Body.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 OrderRequestCreateMarketBuyParams.Body.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.
-
stockId
final OrderRequestCreateMarketBuyParams.Body.Builder stockId(String stockId)
ID of
Stock.
-
stockId
final OrderRequestCreateMarketBuyParams.Body.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.
-
recipientAccountId
final OrderRequestCreateMarketBuyParams.Body.Builder recipientAccountId(String recipientAccountId)
ID of
Accountto receive theOrder.
-
recipientAccountId
final OrderRequestCreateMarketBuyParams.Body.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 OrderRequestCreateMarketBuyParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final OrderRequestCreateMarketBuyParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final OrderRequestCreateMarketBuyParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final OrderRequestCreateMarketBuyParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final OrderRequestCreateMarketBuyParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final OrderRequestCreateMarketBuyParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.paymentAmount() .stockId()
-
-
-
-