Class OrderRequestCreateMarketBuyParams
-
- All Implemented Interfaces:
-
com.dinari.api.core.Params
public final class OrderRequestCreateMarketBuyParams implements Params
Create a managed
OrderRequestto place a market buyOrder. Fees for theOrderare included in the transaction. Refer to our Fee Quote API for fee estimation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrderRequestCreateMarketBuyParams.BuilderA builder for OrderRequestCreateMarketBuyParams.
public final classOrderRequestCreateMarketBuyParams.BodyInput parameters for creating a market buy
OrderRequest.
-
Method Summary
Modifier and Type Method Description final Optional<String>accountId()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>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final OrderRequestCreateMarketBuyParams.BuildertoBuilder()final OrderRequestCreateMarketBuyParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrderRequestCreateMarketBuyParams.Builderbuilder()Returns a mutable builder for constructing an instance of OrderRequestCreateMarketBuyParams. -
-
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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
toBuilder
final OrderRequestCreateMarketBuyParams.Builder toBuilder()
-
_body
final OrderRequestCreateMarketBuyParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static OrderRequestCreateMarketBuyParams.Builder builder()
Returns a mutable builder for constructing an instance of OrderRequestCreateMarketBuyParams.
The following fields are required:
.paymentAmount() .stockId()
-
-
-
-