Class CreateMarketSellOrderInput
-
- All Implemented Interfaces:
public final class CreateMarketSellOrderInputInput parameters for creating a market sell
OrderRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCreateMarketSellOrderInput.BuilderA builder for CreateMarketSellOrderInput.
-
Method Summary
Modifier and Type Method Description final DoubleassetQuantity()Quantity of shares to trade. final StringstockId()ID of Stock.final Optional<String>paymentTokenAddress()Address of the payment token to be used for the sell order. final Optional<String>recipientAccountId()ID of Accountto receive theOrder.final JsonField<Double>_assetQuantity()Returns the raw JSON value of assetQuantity. final JsonField<String>_stockId()Returns the raw JSON value of stockId. final JsonField<String>_paymentTokenAddress()Returns the raw JSON value of paymentTokenAddress. final JsonField<String>_recipientAccountId()Returns the raw JSON value of recipientAccountId. final Map<String, JsonValue>_additionalProperties()final CreateMarketSellOrderInput.BuildertoBuilder()final CreateMarketSellOrderInputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateMarketSellOrderInput.Builderbuilder()Returns a mutable builder for constructing an instance of CreateMarketSellOrderInput. -
-
Method Detail
-
assetQuantity
final Double assetQuantity()
Quantity of shares to trade. Must be a positive number with a precision of up to 9 decimal places.
-
paymentTokenAddress
final Optional<String> paymentTokenAddress()
Address of the payment token to be used for the sell order. If not provided, the default payment token (USD+) will be used. Should only be specified if
recipient_account_idfor a non-managed wallet account is also provided.
-
recipientAccountId
final Optional<String> recipientAccountId()
ID of
Accountto receive theOrder.
-
_assetQuantity
final JsonField<Double> _assetQuantity()
Returns the raw JSON value of assetQuantity.
Unlike assetQuantity, 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.
-
_paymentTokenAddress
final JsonField<String> _paymentTokenAddress()
Returns the raw JSON value of paymentTokenAddress.
Unlike paymentTokenAddress, 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 CreateMarketSellOrderInput.Builder toBuilder()
-
validate
final CreateMarketSellOrderInput validate()
-
builder
final static CreateMarketSellOrderInput.Builder builder()
Returns a mutable builder for constructing an instance of CreateMarketSellOrderInput.
The following fields are required:
.assetQuantity() .stockId()
-
-
-
-