Class Eip155PrepareOrderParams.Body.Builder
-
- All Implemented Interfaces:
public final class Eip155PrepareOrderParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
chainId
final Eip155PrepareOrderParams.Body.Builder chainId(Chain chainId)
CAIP-2 chain ID of the blockchain where the
Orderwill be placed.
-
chainId
final Eip155PrepareOrderParams.Body.Builder chainId(JsonField<Chain> chainId)
Sets Builder.chainId to an arbitrary JSON value.
You should usually call Builder.chainId with a well-typed Chain value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderSide
final Eip155PrepareOrderParams.Body.Builder orderSide(OrderSide orderSide)
Indicates whether
Orderis a buy or sell.
-
orderSide
final Eip155PrepareOrderParams.Body.Builder orderSide(JsonField<OrderSide> orderSide)
Sets Builder.orderSide to an arbitrary JSON value.
You should usually call Builder.orderSide with a well-typed OrderSide value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderTif
final Eip155PrepareOrderParams.Body.Builder orderTif(OrderTif orderTif)
Time in force. Indicates how long
Orderis valid for.
-
orderTif
final Eip155PrepareOrderParams.Body.Builder orderTif(JsonField<OrderTif> orderTif)
Sets Builder.orderTif to an arbitrary JSON value.
You should usually call Builder.orderTif with a well-typed OrderTif value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderType
final Eip155PrepareOrderParams.Body.Builder orderType(OrderType orderType)
Type of
Order.
-
orderType
final Eip155PrepareOrderParams.Body.Builder orderType(JsonField<OrderType> orderType)
Sets Builder.orderType to an arbitrary JSON value.
You should usually call Builder.orderType with a well-typed OrderType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
paymentToken
final Eip155PrepareOrderParams.Body.Builder paymentToken(String paymentToken)
Address of payment token.
-
paymentToken
final Eip155PrepareOrderParams.Body.Builder paymentToken(JsonField<String> paymentToken)
Sets Builder.paymentToken to an arbitrary JSON value.
You should usually call Builder.paymentToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stockId
final Eip155PrepareOrderParams.Body.Builder stockId(String stockId)
The ID of the
Stockfor which theOrderis being placed.
-
stockId
final Eip155PrepareOrderParams.Body.Builder stockId(JsonField<String> stockId)
Sets Builder.stockId to an arbitrary JSON value.
You should usually call Builder.stockId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
assetTokenQuantity
final Eip155PrepareOrderParams.Body.Builder assetTokenQuantity(Double assetTokenQuantity)
Amount of dShare asset tokens involved. Required for limit
Ordersand market sellOrders.
-
assetTokenQuantity
final Eip155PrepareOrderParams.Body.Builder assetTokenQuantity(JsonField<Double> assetTokenQuantity)
Sets Builder.assetTokenQuantity to an arbitrary JSON value.
You should usually call Builder.assetTokenQuantity with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
limitPrice
final Eip155PrepareOrderParams.Body.Builder limitPrice(Double limitPrice)
Price per asset in the asset's native currency. USD for US equities and ETFs. Required for limit
Orders.
-
limitPrice
final Eip155PrepareOrderParams.Body.Builder limitPrice(JsonField<Double> limitPrice)
Sets Builder.limitPrice to an arbitrary JSON value.
You should usually call Builder.limitPrice with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
paymentTokenQuantity
final Eip155PrepareOrderParams.Body.Builder paymentTokenQuantity(Double paymentTokenQuantity)
Amount of payment tokens involved. Required for market buy
Orders.
-
paymentTokenQuantity
final Eip155PrepareOrderParams.Body.Builder paymentTokenQuantity(JsonField<Double> paymentTokenQuantity)
Sets Builder.paymentTokenQuantity to an arbitrary JSON value.
You should usually call Builder.paymentTokenQuantity with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Eip155PrepareOrderParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Eip155PrepareOrderParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Eip155PrepareOrderParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Eip155PrepareOrderParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Eip155PrepareOrderParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Eip155PrepareOrderParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.chainId() .orderSide() .orderTif() .orderType() .paymentToken() .stockId()
-
-
-
-