Class CreateLimitOrderInput
-
- All Implemented Interfaces:
public final class CreateLimitOrderInputInput parameters for creating a limit
OrderRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCreateLimitOrderInput.BuilderA builder for CreateLimitOrderInput.
-
Method Summary
Modifier and Type Method Description final LongassetQuantity()Quantity of shares to trade. final DoublelimitPrice()Price at which to execute the order. final StringstockId()ID of Stock.final JsonField<Long>_assetQuantity()Returns the raw JSON value of assetQuantity. final JsonField<Double>_limitPrice()Returns the raw JSON value of limitPrice. final JsonField<String>_stockId()Returns the raw JSON value of stockId. final Map<String, JsonValue>_additionalProperties()final CreateLimitOrderInput.BuildertoBuilder()final CreateLimitOrderInputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateLimitOrderInput.Builderbuilder()Returns a mutable builder for constructing an instance of CreateLimitOrderInput. -
-
Method Detail
-
assetQuantity
final Long assetQuantity()
Quantity of shares to trade. Must be a positive integer.
-
limitPrice
final Double limitPrice()
Price at which to execute the order. Must be a positive number with a precision of up to 2 decimal places.
-
_assetQuantity
final JsonField<Long> _assetQuantity()
Returns the raw JSON value of assetQuantity.
Unlike assetQuantity, this method doesn't throw if the JSON field has an unexpected type.
-
_limitPrice
final JsonField<Double> _limitPrice()
Returns the raw JSON value of limitPrice.
Unlike limitPrice, 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 CreateLimitOrderInput.Builder toBuilder()
-
validate
final CreateLimitOrderInput validate()
-
builder
final static CreateLimitOrderInput.Builder builder()
Returns a mutable builder for constructing an instance of CreateLimitOrderInput.
The following fields are required:
.assetQuantity() .limitPrice() .stockId()
-
-
-
-