ZeroXPriceRawResponse

data class ZeroXPriceRawResponse(val blockNumber: String? = null, val buyAmount: String, val buyToken: String? = null, val fees: ZeroXFees? = null, val gas: String? = null, val gasPrice: String? = null, val issues: ZeroXIssues? = null, val liquidityAvailable: Boolean? = null, val minBuyAmount: String? = null, val route: ZeroXRoute? = null, val sellAmount: String, val sellToken: String? = null, val tokenMetadata: ZeroXTokenMetadata? = null, val totalNetworkFee: String? = null)

Raw response from the ZeroX price endpoint. Contains all swap price details without transaction data.

Parameters

blockNumber

The block number at which the price was generated.

buyAmount

The amount of tokens to receive.

buyToken

The token address being bought.

fees

Fee information for the swap.

gas

The estimated gas limit.

gasPrice

The current gas price.

issues

Any issues detected with the swap.

liquidityAvailable

Whether liquidity is available for this swap.

minBuyAmount

The minimum amount of tokens to receive after slippage.

route

The routing information for the swap.

sellAmount

The amount of tokens being sold.

sellToken

The token address being sold.

tokenMetadata

Metadata about the tokens involved.

totalNetworkFee

The total network fee in wei.

Constructors

Link copied to clipboard
constructor(blockNumber: String? = null, buyAmount: String, buyToken: String? = null, fees: ZeroXFees? = null, gas: String? = null, gasPrice: String? = null, issues: ZeroXIssues? = null, liquidityAvailable: Boolean? = null, minBuyAmount: String? = null, route: ZeroXRoute? = null, sellAmount: String, sellToken: String? = null, tokenMetadata: ZeroXTokenMetadata? = null, totalNetworkFee: String? = null)

Properties

Link copied to clipboard
val blockNumber: String? = null
Link copied to clipboard
Link copied to clipboard
val buyToken: String? = null
Link copied to clipboard
val fees: ZeroXFees? = null
Link copied to clipboard
val gas: String? = null
Link copied to clipboard
val gasPrice: String? = null
Link copied to clipboard
val issues: ZeroXIssues? = null
Link copied to clipboard
Link copied to clipboard
val minBuyAmount: String? = null
Link copied to clipboard
val route: ZeroXRoute? = null
Link copied to clipboard
Link copied to clipboard
val sellToken: String? = null
Link copied to clipboard
Link copied to clipboard
val totalNetworkFee: String? = null