Class Eip155CreatePermitParams.Body
-
- All Implemented Interfaces:
public final class Eip155CreatePermitParams.BodyInput parameters for building a token permit involved in creating an
OrderRequestusing Dinari's EVM smart contracts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEip155CreatePermitParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description 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 Optional<Double>assetTokenQuantity()Amount of dShare asset tokens involved. final Optional<String>clientOrderId()Customer-supplied unique identifier to map this Orderto an order in the customer's systems.final Optional<Double>limitPrice()Price per asset in the asset's native currency. final Optional<Double>paymentTokenQuantity()Amount of payment tokens involved. final Optional<String>stockId()The ID of the Stockfor which theOrderis being placed.final Optional<String>tokenId()The ID of the Tokenfor which theOrderis being placed.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<Double>_assetTokenQuantity()Returns the raw JSON value of assetTokenQuantity. final JsonField<String>_clientOrderId()Returns the raw JSON value of clientOrderId. final JsonField<Double>_limitPrice()Returns the raw JSON value of limitPrice. final JsonField<Double>_paymentTokenQuantity()Returns the raw JSON value of paymentTokenQuantity. final JsonField<String>_stockId()Returns the raw JSON value of stockId. final JsonField<String>_tokenId()Returns the raw JSON value of tokenId. final Map<String, JsonValue>_additionalProperties()final Eip155CreatePermitParams.Body.BuildertoBuilder()final Eip155CreatePermitParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Eip155CreatePermitParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
paymentToken
final String paymentToken()
Address of payment token.
-
assetTokenQuantity
final Optional<Double> assetTokenQuantity()
Amount of dShare asset tokens involved. Required for limit
Order Requestsand market sellOrder Requests. Must be a positive number with a precision of up to 4 decimal places for limitOrder Requestsor up to 6 decimal places for market sellOrder Requests.
-
clientOrderId
final Optional<String> clientOrderId()
Customer-supplied unique identifier to map this
Orderto an order in the customer's systems.
-
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.
-
_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.
-
_clientOrderId
final JsonField<String> _clientOrderId()
Returns the raw JSON value of clientOrderId.
Unlike clientOrderId, 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.
-
_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.
-
_tokenId
final JsonField<String> _tokenId()
Returns the raw JSON value of tokenId.
Unlike tokenId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Eip155CreatePermitParams.Body.Builder toBuilder()
-
validate
final Eip155CreatePermitParams.Body validate()
-
builder
final static Eip155CreatePermitParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.chainId() .orderSide() .orderTif() .orderType() .paymentToken()
-
-
-
-