Class OrderRequest
-
- All Implemented Interfaces:
public final class OrderRequestA request to create an
Order.An
OrderRequestis created when a user places an order through the Dinari API. TheOrderRequestis then fulfilled by creating anOrderon-chain.The
OrderRequestis a record of the user's intent to place an order, while theOrderis the actual transaction that occurs on the blockchain.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrderRequest.BuilderA builder for OrderRequest.
public final classOrderRequest.StatusStatus of
OrderRequest.
-
Method Summary
Modifier and Type Method Description final Stringid()ID of OrderRequest.final StringaccountId()ID of Accountplacing theOrderRequest.final OffsetDateTimecreatedDt()Datetime at which the OrderRequestwas created.final OrderSideorderSide()Indicates whether Orderis a buy or sell.final OrderTiforderTif()Indicates how long Orderis valid for.final OrderTypeorderType()Type of Order.final OrderRequest.Statusstatus()Status of OrderRequest.final Optional<String>orderId()ID of Ordercreated from theOrderRequest.final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_accountId()Returns the raw JSON value of accountId. final JsonField<OffsetDateTime>_createdDt()Returns the raw JSON value of createdDt. final JsonField<OrderSide>_orderSide()Returns the raw JSON value of orderSide. final JsonField<OrderTif>_orderTif()Returns the raw JSON value of orderTif. final JsonField<OrderType>_orderType()Returns the raw JSON value of orderType. final JsonField<OrderRequest.Status>_status()Returns the raw JSON value of status. final JsonField<String>_orderId()Returns the raw JSON value of orderId. final Map<String, JsonValue>_additionalProperties()final OrderRequest.BuildertoBuilder()final OrderRequestvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrderRequest.Builderbuilder()Returns a mutable builder for constructing an instance of OrderRequest. -
-
Method Detail
-
id
final String id()
ID of
OrderRequest. This is the primary identifier for the/order_requestsroutes.
-
createdDt
final OffsetDateTime createdDt()
Datetime at which the
OrderRequestwas created. ISO 8601 timestamp.
-
status
final OrderRequest.Status status()
Status of
OrderRequest.
-
orderId
final Optional<String> orderId()
ID of
Ordercreated from theOrderRequest. This is the primary identifier for the/ordersroutes.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_accountId
final JsonField<String> _accountId()
Returns the raw JSON value of accountId.
Unlike accountId, this method doesn't throw if the JSON field has an unexpected type.
-
_createdDt
final JsonField<OffsetDateTime> _createdDt()
Returns the raw JSON value of createdDt.
Unlike createdDt, this method doesn't throw if the JSON field has an unexpected type.
-
_orderSide
final JsonField<OrderSide> _orderSide()
Returns the raw JSON value of orderSide.
Unlike orderSide, this method doesn't throw if the JSON field has an unexpected type.
-
_orderTif
final JsonField<OrderTif> _orderTif()
Returns the raw JSON value of orderTif.
Unlike orderTif, this method doesn't throw if the JSON field has an unexpected type.
-
_orderType
final JsonField<OrderType> _orderType()
Returns the raw JSON value of orderType.
Unlike orderType, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<OrderRequest.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_orderId
final JsonField<String> _orderId()
Returns the raw JSON value of orderId.
Unlike orderId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrderRequest.Builder toBuilder()
-
validate
final OrderRequest validate()
-
builder
final static OrderRequest.Builder builder()
Returns a mutable builder for constructing an instance of OrderRequest.
The following fields are required:
.id() .accountId() .createdDt() .orderSide() .orderTif() .orderType() .status()
-
-
-
-