Class Eip155PrepareOrderParams
-
- All Implemented Interfaces:
-
com.dinari.api.core.Params
public final class Eip155PrepareOrderParams implements Params
Create a set of transactions to create an
Orderusing Dinari's EVM smart contracts.This is a convenience method to prepare the transactions needed to create an
Orderusing Dinari's EVM smart contracts. Once signed, the transactions can be sent to the EVM network to create the order. Note that the fee quote is already included in the transactions, so no additional fee quote lookup is needed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEip155PrepareOrderParams.BuilderA builder for Eip155PrepareOrderParams.
public final classEip155PrepareOrderParams.BodyInput parameters for building transactions to create
Ordersusing Dinari's APIs.
-
Method Summary
Modifier and Type Method Description final Optional<String>accountId()final ChainchainId()CAIP-2 chain ID of the blockchain where the Orderwill be placed.final OrderSideorderSide()Indicates whether Orderis a buy or sell.final OrderTiforderTif()Time in force. final OrderTypeorderType()Type of Order.final StringpaymentToken()Address of payment token. final StringstockId()The ID of the Stockfor which theOrderis being placed.final Optional<Double>assetTokenQuantity()Amount of dShare asset tokens involved. final Optional<Double>limitPrice()Price per asset in the asset's native currency. final Optional<Double>paymentTokenQuantity()Amount of payment tokens involved. final JsonField<Chain>_chainId()Returns the raw JSON value of chainId. 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<String>_paymentToken()Returns the raw JSON value of paymentToken. final JsonField<String>_stockId()Returns the raw JSON value of stockId. final JsonField<Double>_assetTokenQuantity()Returns the raw JSON value of assetTokenQuantity. final JsonField<Double>_limitPrice()Returns the raw JSON value of limitPrice. final JsonField<Double>_paymentTokenQuantity()Returns the raw JSON value of paymentTokenQuantity. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final Eip155PrepareOrderParams.BuildertoBuilder()final Eip155PrepareOrderParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static Eip155PrepareOrderParams.Builderbuilder()Returns a mutable builder for constructing an instance of Eip155PrepareOrderParams. -
-
Method Detail
-
paymentToken
final String paymentToken()
Address of payment token.
-
assetTokenQuantity
final Optional<Double> assetTokenQuantity()
Amount of dShare asset tokens involved. Required for limit
Ordersand market sellOrders.
-
limitPrice
final Optional<Double> limitPrice()
Price per asset in the asset's native currency. USD for US equities and ETFs. Required for limit
Orders.
-
paymentTokenQuantity
final Optional<Double> paymentTokenQuantity()
Amount of payment tokens involved. Required for market buy
Orders.
-
_chainId
final JsonField<Chain> _chainId()
Returns the raw JSON value of chainId.
Unlike chainId, 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.
-
_paymentToken
final JsonField<String> _paymentToken()
Returns the raw JSON value of paymentToken.
Unlike paymentToken, 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.
-
_assetTokenQuantity
final JsonField<Double> _assetTokenQuantity()
Returns the raw JSON value of assetTokenQuantity.
Unlike assetTokenQuantity, 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.
-
_paymentTokenQuantity
final JsonField<Double> _paymentTokenQuantity()
Returns the raw JSON value of paymentTokenQuantity.
Unlike paymentTokenQuantity, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final Eip155PrepareOrderParams.Builder toBuilder()
-
_body
final Eip155PrepareOrderParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static Eip155PrepareOrderParams.Builder builder()
Returns a mutable builder for constructing an instance of Eip155PrepareOrderParams.
The following fields are required:
.chainId() .orderSide() .orderTif() .orderType() .paymentToken() .stockId()
-
-
-
-