Class Body17
Request to swap tokens using the optimal route available. You can specify a tokenIn amount (if exact='input') or tokenOut amount (if exact='output'), but not both. The corresponding output or input amount will be returned as the quote.
public class Body17
- Inheritance
-
Body17
- Inherited Members
Properties
AdditionalProperties
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
Property Value
Exact
Whether to swap the exact input or output amount
[JsonProperty("exact", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(StringEnumConverter))]
public Body17Exact Exact { get; set; }
Property Value
From
The wallet address or ENS name that will execute the swap.
[JsonProperty("from", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string From { get; set; }
Property Value
SlippageToleranceBps
The slippage tolerance in basis points. Will be automatically calculated by default.
[JsonProperty("slippageToleranceBps", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public double? SlippageToleranceBps { get; set; }
Property Value
TokenIn
[JsonProperty("tokenIn", Required = Required.Always)]
[Required]
public TokenIn TokenIn { get; set; }
Property Value
TokenOut
[JsonProperty("tokenOut", Required = Required.Always)]
[Required]
public TokenOut TokenOut { get; set; }