Class CreateMarketBuyOrderInput
-
- All Implemented Interfaces:
public final class CreateMarketBuyOrderInputInput parameters for creating a market buy
OrderRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCreateMarketBuyOrderInput.BuilderA builder for CreateMarketBuyOrderInput.
-
Method Summary
Modifier and Type Method Description final DoublepaymentAmount()Amount of currency (USD for US equities and ETFs) to pay for the order. final StringstockId()ID of Stock.final Optional<String>recipientAccountId()ID of Accountto receive theOrder.final JsonField<Double>_paymentAmount()Returns the raw JSON value of paymentAmount. final JsonField<String>_stockId()Returns the raw JSON value of stockId. final JsonField<String>_recipientAccountId()Returns the raw JSON value of recipientAccountId. final Map<String, JsonValue>_additionalProperties()final CreateMarketBuyOrderInput.BuildertoBuilder()final CreateMarketBuyOrderInputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateMarketBuyOrderInput.Builderbuilder()Returns a mutable builder for constructing an instance of CreateMarketBuyOrderInput. -
-
Method Detail
-
paymentAmount
final 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.
-
recipientAccountId
final Optional<String> recipientAccountId()
ID of
Accountto receive theOrder.
-
_paymentAmount
final JsonField<Double> _paymentAmount()
Returns the raw JSON value of paymentAmount.
Unlike paymentAmount, this method doesn't throw if the JSON field has an unexpected type.
-
_stockId
final JsonField<String> _stockId()
Returns the raw JSON value of stockId.
Unlike stockId, this method doesn't throw if the JSON field has an unexpected type.
-
_recipientAccountId
final JsonField<String> _recipientAccountId()
Returns the raw JSON value of recipientAccountId.
Unlike recipientAccountId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CreateMarketBuyOrderInput.Builder toBuilder()
-
validate
final CreateMarketBuyOrderInput validate()
-
builder
final static CreateMarketBuyOrderInput.Builder builder()
Returns a mutable builder for constructing an instance of CreateMarketBuyOrderInput.
The following fields are required:
.paymentAmount() .stockId()
-
-
-
-