Class Order.Builder
-
- All Implemented Interfaces:
public final class Order.BuilderA builder for Order.
-
-
Method Summary
Modifier and Type Method Description final Order.Builderid(String id)ID of the Order.final Order.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Order.BuilderchainId(Chain chainId)CAIP-2 formatted chain ID of the blockchain that the Ordertransaction was run on.final Order.BuilderchainId(JsonField<Chain> chainId)Sets Builder.chainId to an arbitrary JSON value. final Order.BuildercreatedDt(OffsetDateTime createdDt)Datetime at which the Orderwas created.final Order.BuildercreatedDt(JsonField<OffsetDateTime> createdDt)Sets Builder.createdDt to an arbitrary JSON value. final Order.BuilderorderContractAddress(String orderContractAddress)Smart contract address that Orderwas created from.final Order.BuilderorderContractAddress(JsonField<String> orderContractAddress)Sets Builder.orderContractAddress to an arbitrary JSON value. final Order.BuilderorderSide(OrderSide orderSide)Indicates whether Orderis a buy or sell.final Order.BuilderorderSide(JsonField<OrderSide> orderSide)Sets Builder.orderSide to an arbitrary JSON value. final Order.BuilderorderTif(OrderTif orderTif)Time in force. final Order.BuilderorderTif(JsonField<OrderTif> orderTif)Sets Builder.orderTif to an arbitrary JSON value. final Order.BuilderorderTransactionHash(String orderTransactionHash)Transaction hash for the Ordercreation.final Order.BuilderorderTransactionHash(JsonField<String> orderTransactionHash)Sets Builder.orderTransactionHash to an arbitrary JSON value. final Order.BuilderorderType(OrderType orderType)Type of Order.final Order.BuilderorderType(JsonField<OrderType> orderType)Sets Builder.orderType to an arbitrary JSON value. final Order.Builderstatus(BrokerageOrderStatus status)Status of the Order.final Order.Builderstatus(JsonField<BrokerageOrderStatus> status)Sets Builder.status to an arbitrary JSON value. final Order.BuilderstockId(String stockId)The StockID associated with theOrderfinal Order.BuilderstockId(JsonField<String> stockId)Sets Builder.stockId to an arbitrary JSON value. final Order.BuilderassetToken(String assetToken)The dShare asset token address. final Order.BuilderassetToken(JsonField<String> assetToken)Sets Builder.assetToken to an arbitrary JSON value. final Order.BuilderassetTokenQuantity(Double assetTokenQuantity)Total amount of assets involved. final Order.BuilderassetTokenQuantity(JsonField<Double> assetTokenQuantity)Sets Builder.assetTokenQuantity to an arbitrary JSON value. final Order.BuildercancelTransactionHash(String cancelTransactionHash)Transaction hash for cancellation of Order, if theOrderwas cancelled.final Order.BuildercancelTransactionHash(JsonField<String> cancelTransactionHash)Sets Builder.cancelTransactionHash to an arbitrary JSON value. final Order.Builderfee(Double fee)Fee amount associated with Order.final Order.Builderfee(JsonField<Double> fee)Sets Builder.fee to an arbitrary JSON value. final Order.BuilderlimitPrice(Double limitPrice)For limit Orders, the price per asset, specified in theStock's native currency (USD for US equities and ETFs).final Order.BuilderlimitPrice(JsonField<Double> limitPrice)Sets Builder.limitPrice to an arbitrary JSON value. final Order.BuilderorderRequestId(String orderRequestId)Order Request ID for the Orderfinal Order.BuilderorderRequestId(JsonField<String> orderRequestId)Sets Builder.orderRequestId to an arbitrary JSON value. final Order.BuilderpaymentToken(String paymentToken)The payment token (stablecoin) address. final Order.BuilderpaymentToken(JsonField<String> paymentToken)Sets Builder.paymentToken to an arbitrary JSON value. final Order.BuilderpaymentTokenQuantity(Double paymentTokenQuantity)Total amount of payment involved. final Order.BuilderpaymentTokenQuantity(JsonField<Double> paymentTokenQuantity)Sets Builder.paymentTokenQuantity to an arbitrary JSON value. final Order.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Order.BuilderputAdditionalProperty(String key, JsonValue value)final Order.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Order.BuilderremoveAdditionalProperty(String key)final Order.BuilderremoveAllAdditionalProperties(Set<String> keys)final Orderbuild()Returns an immutable instance of Order. -
-
Method Detail
-
id
final Order.Builder id(String id)
ID of the
Order.
-
id
final Order.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chainId
final Order.Builder chainId(Chain chainId)
CAIP-2 formatted chain ID of the blockchain that the
Ordertransaction was run on.
-
chainId
final Order.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.
-
createdDt
final Order.Builder createdDt(OffsetDateTime createdDt)
Datetime at which the
Orderwas created. ISO 8601 timestamp.
-
createdDt
final Order.Builder createdDt(JsonField<OffsetDateTime> createdDt)
Sets Builder.createdDt to an arbitrary JSON value.
You should usually call Builder.createdDt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderContractAddress
final Order.Builder orderContractAddress(String orderContractAddress)
Smart contract address that
Orderwas created from.
-
orderContractAddress
final Order.Builder orderContractAddress(JsonField<String> orderContractAddress)
Sets Builder.orderContractAddress to an arbitrary JSON value.
You should usually call Builder.orderContractAddress with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderSide
final Order.Builder orderSide(OrderSide orderSide)
Indicates whether
Orderis a buy or sell.
-
orderSide
final Order.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 Order.Builder orderTif(OrderTif orderTif)
Time in force. Indicates how long
Orderis valid for.
-
orderTif
final Order.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.
-
orderTransactionHash
final Order.Builder orderTransactionHash(String orderTransactionHash)
Transaction hash for the
Ordercreation.
-
orderTransactionHash
final Order.Builder orderTransactionHash(JsonField<String> orderTransactionHash)
Sets Builder.orderTransactionHash to an arbitrary JSON value.
You should usually call Builder.orderTransactionHash with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderType
final Order.Builder orderType(OrderType orderType)
Type of
Order.
-
orderType
final Order.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.
-
status
final Order.Builder status(BrokerageOrderStatus status)
Status of the
Order.
-
status
final Order.Builder status(JsonField<BrokerageOrderStatus> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed BrokerageOrderStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stockId
final Order.Builder stockId(String stockId)
The
StockID associated with theOrder
-
stockId
final Order.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.
-
assetToken
final Order.Builder assetToken(String assetToken)
The dShare asset token address.
-
assetToken
final Order.Builder assetToken(JsonField<String> assetToken)
Sets Builder.assetToken to an arbitrary JSON value.
You should usually call Builder.assetToken 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 Order.Builder assetTokenQuantity(Double assetTokenQuantity)
Total amount of assets involved.
-
assetTokenQuantity
final Order.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.
-
cancelTransactionHash
final Order.Builder cancelTransactionHash(String cancelTransactionHash)
Transaction hash for cancellation of
Order, if theOrderwas cancelled.
-
cancelTransactionHash
final Order.Builder cancelTransactionHash(JsonField<String> cancelTransactionHash)
Sets Builder.cancelTransactionHash to an arbitrary JSON value.
You should usually call Builder.cancelTransactionHash with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fee
final Order.Builder fee(Double fee)
Fee amount associated with
Order.
-
fee
final Order.Builder fee(JsonField<Double> fee)
Sets Builder.fee to an arbitrary JSON value.
You should usually call Builder.fee 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 Order.Builder limitPrice(Double limitPrice)
For limit
Orders, the price per asset, specified in theStock's native currency (USD for US equities and ETFs).
-
limitPrice
final Order.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.
-
orderRequestId
final Order.Builder orderRequestId(String orderRequestId)
Order Request ID for the
Order
-
orderRequestId
final Order.Builder orderRequestId(JsonField<String> orderRequestId)
Sets Builder.orderRequestId to an arbitrary JSON value.
You should usually call Builder.orderRequestId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
paymentToken
final Order.Builder paymentToken(String paymentToken)
The payment token (stablecoin) address.
-
paymentToken
final Order.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.
-
paymentTokenQuantity
final Order.Builder paymentTokenQuantity(Double paymentTokenQuantity)
Total amount of payment involved.
-
paymentTokenQuantity
final Order.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 Order.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Order.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Order.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Order.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Order.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Order build()
Returns an immutable instance of Order.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .chainId() .createdDt() .orderContractAddress() .orderSide() .orderTif() .orderTransactionHash() .orderType() .status() .stockId()
-
-
-
-