Class OrderRequestCreateMarketBuyParams.Body
-
- All Implemented Interfaces:
public final class OrderRequestCreateMarketBuyParams.BodyInput parameters for creating a market buy
OrderRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrderRequestCreateMarketBuyParams.Body.BuilderA builder for Body.
-
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 JsonField<Double>_paymentAmount()Returns the raw JSON value of paymentAmount. final JsonField<String>_stockId()Returns the raw JSON value of stockId. final Map<String, JsonValue>_additionalProperties()final OrderRequestCreateMarketBuyParams.Body.BuildertoBuilder()final OrderRequestCreateMarketBuyParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrderRequestCreateMarketBuyParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
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.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrderRequestCreateMarketBuyParams.Body.Builder toBuilder()
-
validate
final OrderRequestCreateMarketBuyParams.Body validate()
-
builder
final static OrderRequestCreateMarketBuyParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.paymentAmount() .stockId()
-
-
-
-