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.BuilderpaymentToken(String paymentToken)The payment token (stablecoin) address. final Order.BuilderpaymentToken(JsonField<String> paymentToken)Sets Builder.paymentToken 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.BuilderalloyId(String alloyId)The AlloyID associated with theOrderfinal Order.BuilderalloyId(Optional<String> alloyId)Alias for calling Builder.alloyId with alloyId.orElse(null).final Order.BuilderalloyId(JsonField<String> alloyId)Sets Builder.alloyId to an arbitrary JSON value. final Order.BuilderassetToken(String assetToken)The dShare asset token address. final Order.BuilderassetToken(Optional<String> assetToken)Alias for calling Builder.assetToken with assetToken.orElse(null).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(Double assetTokenQuantity)Alias for Builder.assetTokenQuantity. final Order.BuilderassetTokenQuantity(Optional<Double> assetTokenQuantity)Alias for calling Builder.assetTokenQuantity with assetTokenQuantity.orElse(null).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(Optional<String> cancelTransactionHash)Alias for calling Builder.cancelTransactionHash with cancelTransactionHash.orElse(null).final Order.BuildercancelTransactionHash(JsonField<String> cancelTransactionHash)Sets Builder.cancelTransactionHash to an arbitrary JSON value. final Order.BuilderclientOrderId(String clientOrderId)Customer-supplied unique identifier to map this Orderto an order in the customer's systems.final Order.BuilderclientOrderId(Optional<String> clientOrderId)Alias for calling Builder.clientOrderId with clientOrderId.orElse(null).final Order.BuilderclientOrderId(JsonField<String> clientOrderId)Sets Builder.clientOrderId to an arbitrary JSON value. final Order.Builderfee(Double fee)Fee amount associated with Order.final Order.Builderfee(Double fee)Alias for Builder.fee. final Order.Builderfee(Optional<Double> fee)Alias for calling Builder.fee with fee.orElse(null).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(Double limitPrice)Alias for Builder.limitPrice. final Order.BuilderlimitPrice(Optional<Double> limitPrice)Alias for calling Builder.limitPrice with limitPrice.orElse(null).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(Optional<String> orderRequestId)Alias for calling Builder.orderRequestId with orderRequestId.orElse(null).final Order.BuilderorderRequestId(JsonField<String> orderRequestId)Sets Builder.orderRequestId to an arbitrary JSON value. final Order.BuilderpaymentTokenQuantity(Double paymentTokenQuantity)Total amount of payment involved. final Order.BuilderpaymentTokenQuantity(Double paymentTokenQuantity)Alias for Builder.paymentTokenQuantity. final Order.BuilderpaymentTokenQuantity(Optional<Double> paymentTokenQuantity)Alias for calling Builder.paymentTokenQuantity with paymentTokenQuantity.orElse(null).final Order.BuilderpaymentTokenQuantity(JsonField<Double> paymentTokenQuantity)Sets Builder.paymentTokenQuantity to an arbitrary JSON value. final Order.BuilderstockId(String stockId)The StockID associated with theOrderfinal Order.BuilderstockId(Optional<String> stockId)Alias for calling Builder.stockId with stockId.orElse(null).final Order.BuilderstockId(JsonField<String> stockId)Sets Builder.stockId 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.
-
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.
-
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.
-
alloyId
final Order.Builder alloyId(String alloyId)
The
AlloyID associated with theOrder
-
alloyId
final Order.Builder alloyId(Optional<String> alloyId)
Alias for calling Builder.alloyId with
alloyId.orElse(null).
-
alloyId
final Order.Builder alloyId(JsonField<String> alloyId)
Sets Builder.alloyId to an arbitrary JSON value.
You should usually call Builder.alloyId 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(Optional<String> assetToken)
Alias for calling Builder.assetToken with
assetToken.orElse(null).
-
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(Double assetTokenQuantity)
Alias for Builder.assetTokenQuantity.
This unboxed primitive overload exists for backwards compatibility.
-
assetTokenQuantity
final Order.Builder assetTokenQuantity(Optional<Double> assetTokenQuantity)
Alias for calling Builder.assetTokenQuantity with
assetTokenQuantity.orElse(null).
-
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(Optional<String> cancelTransactionHash)
Alias for calling Builder.cancelTransactionHash with
cancelTransactionHash.orElse(null).
-
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.
-
clientOrderId
final Order.Builder clientOrderId(String clientOrderId)
Customer-supplied unique identifier to map this
Orderto an order in the customer's systems.
-
clientOrderId
final Order.Builder clientOrderId(Optional<String> clientOrderId)
Alias for calling Builder.clientOrderId with
clientOrderId.orElse(null).
-
clientOrderId
final Order.Builder clientOrderId(JsonField<String> clientOrderId)
Sets Builder.clientOrderId to an arbitrary JSON value.
You should usually call Builder.clientOrderId 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(Double fee)
Alias for Builder.fee.
This unboxed primitive overload exists for backwards compatibility.
-
fee
final Order.Builder fee(Optional<Double> fee)
Alias for calling Builder.fee with
fee.orElse(null).
-
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(Double limitPrice)
Alias for Builder.limitPrice.
This unboxed primitive overload exists for backwards compatibility.
-
limitPrice
final Order.Builder limitPrice(Optional<Double> limitPrice)
Alias for calling Builder.limitPrice with
limitPrice.orElse(null).
-
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(Optional<String> orderRequestId)
Alias for calling Builder.orderRequestId with
orderRequestId.orElse(null).
-
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.
-
paymentTokenQuantity
final Order.Builder paymentTokenQuantity(Double paymentTokenQuantity)
Total amount of payment involved.
-
paymentTokenQuantity
final Order.Builder paymentTokenQuantity(Double paymentTokenQuantity)
Alias for Builder.paymentTokenQuantity.
This unboxed primitive overload exists for backwards compatibility.
-
paymentTokenQuantity
final Order.Builder paymentTokenQuantity(Optional<Double> paymentTokenQuantity)
Alias for calling Builder.paymentTokenQuantity with
paymentTokenQuantity.orElse(null).
-
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.
-
stockId
final Order.Builder stockId(String stockId)
The
StockID associated with theOrder
-
stockId
final Order.Builder stockId(Optional<String> stockId)
Alias for calling Builder.stockId with
stockId.orElse(null).
-
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.
-
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() .paymentToken() .status()
-
-
-
-